﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Theme */
    --primary-blue: #5757c5;
    --primary-blue-hover: #00c18d;
    --primary-blue-light: #3b82f6;
    --success-green: #00c18d;
    --error-red: #dc2626;
    --warning-orange: #d97706;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    --bg-primary: #ffffff;
    --bg-secondary: var(--neutral-50);
    --text-primary: var(--neutral-900);
    --text-secondary: var(--neutral-600);
    --text-muted: var(--neutral-500);
    --border: var(--neutral-200);
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}



body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-secondary);
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    /* padding: 1rem; */
    position: relative;
    overflow-x: hidden;
}



.login-container {
    width: 100%;
    max-width: 440px;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px var(--shadow), 0 10px 10px -5px var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.login-header {
    padding: 3.5rem 2.5rem 2.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
}

.logo-img {
    width: 295px;
    height: auto;
    margin: 0 auto 1rem;
}


.company-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
}

.login-body {
    padding: 2.5rem;
    position: relative;
}

.step {
    display: none;
    animation: slideInRight 0.4s ease-out;
}

    .step.active {
        display: block;
    }

    .step.slide-out {
        animation: slideOutLeft 0.3s ease-in forwards;
    }

@@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

.step-header {
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.2s ease;
    outline: none;
}

    .form-input:focus {
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

    .form-input:invalid {
        border-color: var(--error-red);
    }

    .form-input::placeholder {
        color: var(--text-muted);
    }

.input-wrapper {
    position: relative;
}

.icon-right {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9b989f;
    pointer-events: none;
    font-size: 1rem;
}

.password-container {
    position: relative;
}

.form-input {
    width: 100%;
    padding-right: 40px;
    box-sizing: border-box;
}

.password-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    .password-eye:hover {
        color: var(--primary-blue);
        background-color: rgba(37, 99, 235, 0.05);
    }

    .password-eye i {
        color: #9b989f;
    }

.otp-container {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.2s ease;
    outline: none;
}

    .otp-input:focus {
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

.primary-button {
    width: 100%;
    height: 48px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

    .primary-button:hover:not(:disabled) {
        background: var(--primary-blue-hover);
        transform: translateY(-1px);
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    }

    .primary-button:active {
        transform: translateY(0);
    }

    .primary-button:disabled {
        background: var(--neutral-300);
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    .primary-button.loading {
        color: transparent;
    }

        .primary-button.loading::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 20px;
            height: 20px;
            margin: -10px 0 0 -10px;
            border: 2px solid transparent;
            border-top: 2px solid white;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

@@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.secondary-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .secondary-link:hover {
        color: var(--primary-blue-hover);
        text-decoration: underline;
    }

.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

.resend-container {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.resend-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.error-message {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: var(--error-red);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: none;
    animation: slideInDown 0.3s ease-out;
}

    .error-message.show {
        display: block;
    }

@@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.2);
    color: var(--success-green);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: none;
    animation: slideInDown 0.3s ease-out;
}

    .success-message.show {
        display: block;
    }

.progress-bar {
    height: 3px;
    background: var(--border);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.progress-fill {
    height: 100%;
    background: var(--primary-blue);
    width: 33.33%;
    transition: width 0.4s ease;
}

/* Responsive Design */
@@media (max-width: 480px) {
    .login-container {
        max-width: 100%;
        border-radius: 0;
        /*                 min-height: 100vh;
         */ /*  border: none;
                        box-shadow: none; */
    }

    .login-header,
    .login-body {
        padding: 2rem 1.5rem;
    }

    .step-title {
        font-size: 1.25rem;
    }

    .otp-container {
        gap: 0.5rem;
    }

    .otp-input {
        width: 40px;
        height: 48px;
        font-size: 1.1rem;
    }
}

@@media (max-width: 320px) {
    .otp-input {
        width: 36px;
        height: 44px;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}



/* High contrast mode support */
@@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --shadow: rgba(0, 0, 0, 0.5);
    }
}

.split-screen {
    display: flex;
    height: 100vh;
    flex-direction: row;
}

.left-panel {
    flex: 0.5;
    padding: 40px;
    display: flex;
    flex-direction: column; /* stack card + footer */
    justify-content: center; /* vertical centering */
    align-items: center; /* horizontal centering */
    background-color: #fff;
    overflow-y: auto;
}

.right-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff; /* Optional background */
    position: relative;
    overflow: hidden;
}

.login-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Responsive for smaller screens */
@@media (max-width: 768px) {
    .split-screen {
        flex-direction: column; /* Stack panels vertically */
    }

    .left-panel {
        flex: none;
        width: 100%;
    }

    .right-panel {
        flex: none;
        width: 100%;
        height: 30vh;
        display: flex;
        background-size: contain;
        background-repeat: no-repeat;
        /* background-position: center; */
        flex-direction: column-reverse;
        align-content: stretch;
        flex-wrap: nowrap;
        justify-content: space-around;
    }

    .left-panel {
        padding: 20px;
    }
}

.login-footer {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #6B7280;
    text-align: center;
}

.remember-me-container {
    display: flex;
    align-items: center;
    gap: 8px; /* adjust spacing as needed */
    margin-bottom: 1rem;
    margin-top: -10px;
}

#RememberMe {
    margin: 0;
    width: 18px;
    height: 18px;
}

.square-blue .checkbox label,
.radio label {
    margin: 0;
}

.alternative-login {
    text-align: center;
}

.or-text {
    margin: 4px 0;
    font-weight: 500;
    color: #999;
}

.blue-link {
    color: #531988; /* Bootstrap blue */
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    font-size: 13px;
}

    .blue-link:hover {
        text-decoration: underline;
    }

.custom-dropdown {
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background-color: #fff;
    color: #212529;
    appearance: none; /* Removes default browser style */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='14' height='10' viewBox='0 0 14 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23666' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px 10px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .custom-dropdown:focus {
        border-color: #80bdff;
        outline: 0;
        box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.25);
    }

.form-label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

.form-group {
    margin-bottom: 1rem;
}

.mobile-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Make wrapper height same as input */
.custom-select-wrapper,
.custom-select-trigger {
    height: 48px;
    width: 105px;
}

/* Keep inner content aligned */
.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px; /* match input padding */
    border: 1px solid #ced4da;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    gap: 8px;
}

    /* Image and arrow sizing */
    .custom-select-trigger img {
        width: 24px;
        height: 16px;
        object-fit: contain;
    }

    /* Arrow styling */
    .custom-select-trigger .arrow {
        margin-left: auto;
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid #333;
    }

/* Compact dropdown */
.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 5px;
    z-index: 10;
    max-height: 150px;
    width: 105px;
    overflow-y: auto;
    display: none;
    padding: 4px 0;
}

/* Option layout */
.option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap; /* keep all in one line */
    overflow: hidden; /* hide overflow */
    text-overflow: ellipsis; /* show ... for long names */
}

    .option img {
        width: 20px;
        height: 14px;
        object-fit: cover;
        border-radius: 2px;
        flex-shrink: 0; /* prevent flag from shrinking */
    }

    .option:hover {
        background-color: #f0f0f0;
    }

/* Trigger dropdown style */
#countryCode.custom-dropdown {
    width: 80px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

#mobileNumber.form-input {
    flex: 1;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

#recoveryInput.form-input {
    flex: 1;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
