﻿/* Enhanced Responsive Login Page Styles */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --background-color: #a4a2a2;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
}

/* ✅ ENHANCED: Main Container */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    width: 100%;
    background: var(--surface-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    height: 100%;
    margin-bottom: 0px;
    border-radius: 6px !important;
}

.s-LoginPanel, .btn-primary {
    display: flow;
}
/* ✅ ENHANCED: Login Section */
.login-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--surface-color);
    position: relative;
    z-index: 2;
}

.login-panel {
    max-width: 100% !important;
    margin: 0 auto;
    width: 100%;
    padding: 30px 30px;
    background: white;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-bottom-right-radius: 10px; 
    border-top-right-radius: 10px;
}




.login-header {
    text-align: center;
}

.brand-logo {
    object-fit: contain;
}


.brand-logo {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.logo-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-md);
}

    .logo-icon svg {
        width: 2rem;
        height: 2rem;
    }

.brand-text {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
}

.brand-name {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.brand-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.welcome-text {
    text-align: center;
    margin-right: 40px;
}

.welcome-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 0.5rem 0;
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: #000);
    margin: 0;
    line-height: 0.5;
}

.brand-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.login-footer {
    text-align: center;
    margin-top: 15px;
    margin-left: 38px;
}


.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #fffffa;
    background: var(--background-color);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-right: 40px;
}

.security-icon {
    width: 1rem;
    height: 1rem;
}

/* ✅ ENHANCED: Promo Section with Better Logo Visibility */
.promo-section {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-bottom-left-radius: 10px;
    border-top-left-radius: 10px;
}

.promo-panel {
    position: relative;
    height: 100%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.promo-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
}

.pattern-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    background-size: 100px 100px;
}

.promo-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    height: -webkit-fill-available;
}

/* ✅ ENHANCED: Partnership Section with Better Logo Visibility */
.partnership-section {
    margin-bottom: 1.5rem;
    text-align: center;
}

.partner-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.partner-logo {
    height: 3rem;
    width: auto;
    filter: brightness(1.2) contrast(1.1);
    opacity: 1;
}

.main-content {
    text-align: left;
}

.headline-section {
    margin-bottom: 2rem;
}

.main-headline {
    font-size: 2.0rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.highlight-text {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.description-section {
    margin-bottom: 2.5rem;
}

.sub-headline {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    opacity: 0.95;
    line-height: 1.4;
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
}

.features-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

    .feature-icon svg {
        width: 100%;
        height: 100%;
    }

/* ✅ ENHANCED: Form Styles */
.s-container-tight {
    width: 100%;
}

    .s-container-tight .s-Form {
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .s-container-tight .s-PropertyGrid {
        background: none;
        border: none;
    }



    .s-container-tight .field label {
        font-weight: 600;
        color: var(--text-primary);
        display: block;
        font-size: 0.95rem;
    }

    .s-container-tight .field input[type="text"],
    .s-container-tight .field input[type="password"],
    .s-container-tight .field input[type="email"] {
        width: 100%;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        font-size: 1rem;
        transition: all 0.2s ease;
        background: #fff;
        font-family: inherit;
    }

    .s-container-tight .field input:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        transform: translateY(-1px);
    }

    .s-container-tight .s-Button,
    .btn-primary {
        width: 100%;
        padding: 1rem 1.5rem;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
        border: none;
        border-radius: var(--radius-md);
        color: white;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        margin-top: 1rem;
        font-family: inherit;
    }

        .s-container-tight .s-Button:hover,
        .btn-primary:hover {
            background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        .s-container-tight .s-Button:active,
        .btn-primary:active {
            transform: translateY(0);
        }

/* ✅ ENHANCED: Links */
.text-decoration-none {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .text-decoration-none:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

.float-end {
    float: right;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1rem;
}

.my-3 {
    margin: 1.5rem 0;
}



/* ✅ ENHANCED: Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(2rem);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ✅ ENHANCED: Responsive Design */
@media (max-width: 1200px) {
    .login-wrapper {
        max-width: 1000px;
    }

    .main-headline {
        font-size: 2.25rem;
    }

    .promo-panel {
        padding: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        max-width: 600px;
        min-height: auto;
    }

    .promo-section {
        order: -1;
        min-height: 400px;
    }

    .promo-panel {
        padding: 2rem;
        text-align: center;
        justify-content: center;
    }

    .main-content {
        text-align: center;
    }

    .main-headline {
        font-size: 2rem;
    }

    .features-section {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .feature-item {
        flex: 1;
        min-width: 200px;
        max-width: 250px;
    }

    .partner-logo {
        height: 3.5rem;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 0.5rem;
    }

    .login-section {
        padding: 1.5rem;
    }

    .promo-panel {
        padding: 1.5rem;
    }

    .welcome-title {
        font-size: 1.875rem;
    }

    .main-headline {
        font-size: 1.75rem;
    }

    .sub-headline {
        font-size: 1.125rem;
    }

    .description-text {
        font-size: 1rem;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .logo-icon {
        width: 3rem;
        height: 3rem;
    }

        .logo-icon svg {
            width: 1.5rem;
            height: 1.5rem;
        }

    .partner-logo {
        height: 3rem;
    }

    .features-section {
        flex-direction: column;
        align-items: stretch;
    }

    .feature-item {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        border-radius: 0;
        min-height: 100vh;
    }

    .login-container {
        padding: 0;
    }

    .brand-logo {
        flex-direction: column;
        gap: 0.75rem;
    }

    .brand-text {
        align-items: center;
    }

    .welcome-title {
        font-size: 1.625rem;
    }

    .main-headline {
        font-size: 1.5rem;
    }

    .promo-section {
        min-height: 350px;
    }

    .partner-logo-container {
        padding: 1rem;
    }

    .partner-logo {
        height: 2.5rem;
    }
}

/* ✅ ENHANCED: Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #0f172a;
        --surface-color: #1e293b;
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-muted: #64748b;
        --border-color: #334155;
    }

    body {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
}

/* ✅ ENHANCED: Print styles */
@media print {
    .promo-section {
        display: none;
    }

    .login-wrapper {
        grid-template-columns: 1fr;
        box-shadow: none;
    }
}

/* ✅ ENHANCED: High contrast mode */
@media (prefers-contrast: high) {
    .login-wrapper {
        border: 2px solid var(--text-primary);
    }

    .s-container-tight .field input[type="text"],
    .s-container-tight .field input[type="password"],
    .s-container-tight .field input[type="email"] {
        border-width: 3px;
    }
}

/* ✅ ENHANCED: Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/*adddition added css for improving the ui of left side design of login panel*/



.login-section {
    padding: 0px !important;
}

.s-container-tight .field label {
    color: #000000;
}

.field {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    flex: 0 1 100%;
    min-width: 0;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    padding-top: 0.5rem;
}

    .field .caption {
        width: 100% !important;
        flex-shrink: 1;
        flex-grow: 1;
        text-align: start;
        margin-right: var(--s-col-gap);
        line-height: calc(var(--s-input-inner-height) + 2px);
    }

.float-end {
    float: left !important;
}

.text-decoration-none {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    text-align: left !important;
    float: center;
}



.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #ffffff;
    background: var(--background-color);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
}



/*sign up css*/
.s-container-narrow {
    max-width: 100% !important;
    padding: 0px !important;
}

.login-form-container{
    width: 100% !important;
}