/* ============================================
   LOGIN PAGE
   Styles for backend login (backendUsers/Index)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================
   RESET & BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    min-height: 100vh;
}

/* ============================================
   LAYOUT
   ============================================ */

.login-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 28px;
}

.login-left {
    position: relative;
    height: min(911px, calc(100vh - 56px));
    width: auto;
    aspect-ratio: 676 / 911;
    max-width: 676px;
    overflow: hidden;
    border-radius: 24px;
}

.login-left-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    background-image: url('/img/loginBg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-left-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(179.492deg, rgba(0, 0, 0, 0) 0.29421%, rgba(0, 0, 0, 0.42) 125.68%);
}

/* ============================================
   LEFT PANEL – CONTENT & INDICATORS
   ============================================ */

.page-indicator {
    position: absolute;
    bottom: 7%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    align-items: center;
}

.page-dot {
    width: 8px;
    height: 8px;
    border-radius: 100px;
    background-color: #96bfff;
}

.page-dot.active {
    background-color: white;
    width: 24px;
    border-radius: 10px;
}

.dots-container {
    display: flex;
    gap: 4px;
}

.login-left-content {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
}

.fare-management {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 4.4vmin, 40px);
    margin-bottom: clamp(10px, 2vh, 18px);
}

.fare-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 2.6vmin, 24px);
    max-width: 90%;
    margin: 0 auto;
}

.decorative-svg {
    position: absolute;
    top: clamp(12px, 2.7vh, 25px);
    left: 16%;
    transform: translateX(-50%);
    width: 28%;
    max-width: 140px;
}

.decorative-svg svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   RIGHT PANEL – FORM
   ============================================ */

.login-right {
    justify-self: center;
    width: 100%;
    min-width: 280px;
    max-width: 442px;
}

.welcome-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 3.2vmin, 33px);
    color: #000000;
    margin-bottom: clamp(20px, 3vh, 36px);
}

.continue-text {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(16px, 2vmin, 20px);
    color: #6b7280;
    margin-bottom: clamp(36px, 6vh, 72px);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #111928;
    margin-bottom: 8px;
    display: block;
}

.form-input-wrapper {
    position: relative;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: visible;
}

.form-input-wrapper:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #111928;
    background-color: transparent;
    border: none;
    outline: none;
}

.form-input::placeholder {
    color: #6b7280;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    min-width: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #111928;
}

/* Lucide icon inside toggle (eye / eye-off) */
.password-toggle i,
.password-toggle svg {
    width: 18px;
    height: 18px;
    color: inherit;
    stroke: currentColor;
}

.forgot-password {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #000000;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-block;
    margin-top: 8px;
}

.forgot-password:hover {
    color: #6b7280;
}

.login-btn {
    width: 100%;
    height: 48px;
    background-color: #006FE6;
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 48px;
}

.login-btn:hover {
    background-color: #005FCC;
}

.login-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.signup-text {
    position: absolute;
    top: 28px;
    right: 28px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.8vmin, 16px);
    color: #8692a6;
    margin-top: 0;
    text-align: right;
}

.signup-link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #000000;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.signup-link:hover {
    color: #6b7280;
}

/* ============================================
   VALIDATION & MESSAGES
   ============================================ */

.error-message {
    color: #dc2626;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin-top: 8px;
}

.validation-summary {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    list-style: none;
}

.validation-summary li {
    color: #dc2626;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin-bottom: 4px;
}

.validation-summary li:last-child {
    margin-bottom: 0;
}

.field-validation-error {
    color: #dc2626;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.required {
    color: #dc2626;
}

.form-input-wrapper.invalid {
    border-color: #dc2626;
}

.form-input-wrapper.valid {
    border-color: #10b981;
}

.progress-image {
    margin-top: 8px;
}

.recaptcha-container {
    margin-top: 16px;
    display: flex;
    justify-content: right;
}

/* ============================================
   LOGO & MASK (LEFT PANEL)
   ============================================ */

.mask-alpha {
    mask-image: url('data:image/svg+xml,%3Csvg%20preserveAspectRatio%3D%22none%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20overflow%3D%22visible%22%20style%3D%22display%3A%20block%3B%22%20viewBox%3D%220%200%20364.649%2066.9372%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%2214ef25decc%22%3E%3Cpath%20id%3D%22Vector%22%20d%3D%22M364.649%200H5.12186e-05V66.9372H364.649V0Z%22%20fill%3D%22var(--fill-0%2C%20black)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A');
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: cover;
    -webkit-mask-image: url('data:image/svg+xml,%3Csvg%20preserveAspectRatio%3D%22none%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20overflow%3D%22visible%22%20style%3D%22display%3A%20block%3B%22%20viewBox%3D%220%200%20364.649%2066.9372%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%2214ef25decc%22%3E%3Cpath%20id%3D%22Vector%22%20d%3D%22M364.649%200H5.12186e-05V66.9372H364.649V0Z%22%20fill%3D%22var(--fill-0%2C%20black)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: cover;
}

.logo {
    position: absolute;
    width: 74%;
    max-width: 500px;
    height: 16.5%;
    max-height: 150px;
    top: 12.7%;
    left: 50%;
    transform: translateX(-50%);
    overflow: clip;
}

.masked-group {
    position: absolute;
    display: contents;
    top: 29.1%;
    right: -2.85%;
    bottom: 8.91%;
    left: 26.77%;
}

/* ============================================
   RESPONSIVE – RIGHT PANEL & LAYOUT
   ============================================ */

@media (max-width: 1200px) {
    .login-right {
        min-width: 260px;
    }
}

@media (max-width: 900px) {
    .login-container {
        grid-template-columns: 1fr;
        padding: 20px;
        padding-top: 60px;
    }

    .login-left {
        max-height: min(500px, 55vh);
        width: 100%;
        max-width: 400px;
        justify-self: start;
    }

    .login-right {
        min-width: 0;
        width: 100%;
        max-width: 442px;
        justify-self: center;
    }

    .signup-text {
        top: 16px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 16px;
        padding-top: 56px;
    }

    .login-left {
        max-height: min(400px, 50vh);
        max-width: 100%;
    }

    .form-input {
        padding: 12px 14px 12px 40px;
        font-size: 16px;
    }

    .login-btn {
        width: 100%;
    }
}
