/* ============================================
   LockBox – Auth Pages (Login, Forgot, Reset, Lockout)
   ============================================ */

/* Full-screen split layout */
.login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #1e2433;
}

/* ---- Left hero panel (dark) ---- */
.login-hero {
    flex: 1 1 50%;
    background: linear-gradient(160deg, #1e2433 0%, #2a3244 40%, #1e2433 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.login-hero::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(113, 191, 68, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.login-hero::after {
    content: '';
    position: absolute;
    bottom: -5rem;
    right: -5rem;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(113, 191, 68, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.login-hero-content {
    position: relative;
    z-index: 1;
    color: #e4e6eb;
    max-width: 460px;
}

.login-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(113, 191, 68, 0.15);
    border: 1px solid rgba(113, 191, 68, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.login-hero-icon i {
    font-size: 1.6rem;
    color: var(--theme-color, #71bf44);
}

.login-hero-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: #fff;
}

.login-hero-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #b0b8c8;
    margin-bottom: 2.25rem;
}

.login-hero-features {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.login-hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    color: #dce1ea;
}

.login-hero-feature i {
    font-size: 1rem;
    color: var(--theme-color, #71bf44);
}

/* ---- Right form panel (light) ---- */
@keyframes loginBgShift {
    0%, 100% { background-position: 0 0, 10px 10px; }
    50%       { background-position: 10px 10px, 0 0; }
}

.login-form-side {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background-color: #f0f2f5;
    background-image:
        radial-gradient(rgba(100, 116, 139, 0.09) 1px, transparent 1px),
        radial-gradient(rgba(100, 116, 139, 0.09) 1px, transparent 1px);
    background-size: 24px 24px, 24px 24px;
    background-position: 0 0, 12px 12px;
    animation: loginBgShift 12s ease-in-out infinite;
    position: relative;
}

.login-form-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,0.25) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.login-form-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 2.5rem 2.5rem 2rem;
    margin-bottom: 1.5rem;
}

.login-logo {
    margin-bottom: 2rem;
}

.login-logo img {
    max-width: 220px;
    max-height: 60px;
    object-fit: contain;
}

.login-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.login-subtitle {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

/* Form (light) */
.login-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.4rem;
}

.login-label i {
    color: #6b7280;
}

.login-form .form-control {
    border-radius: 10px;
    border: 1.5px solid #c5ccd6;
    height: 48px;
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.login-form .form-control::placeholder {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Subtle autofill indicator — light tint so users know a field was auto-filled */
.login-form .form-control:-webkit-autofill,
.login-form .form-control:-webkit-autofill:hover,
.login-form .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #f0f7ec inset !important;
    -webkit-text-fill-color: #212529 !important;
    transition: background-color 5000s ease-in-out 0s;
    border-color: var(--theme-color, #71bf44);
}

.login-form .form-control:focus {
    border-color: var(--theme-color, #71bf44);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 3px rgba(113, 191, 68, 0.12);
    background: #fff;
    color: #212529;
}

.login-form .form-check-input {
    background-color: #fff;
    border-color: #dee2e6;
}

.login-form .form-check-input:checked {
    background-color: var(--theme-color, #71bf44);
    border-color: var(--theme-color, #71bf44);
}

.login-form .form-check-label {
    font-size: 0.875rem;
    color: #1f2937;
}

.login-forgot-link {
    font-size: 0.875rem;
    color: var(--theme-color, #71bf44);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.login-forgot-link:hover {
    color: var(--theme-accent, #5a9e36);
    text-decoration: underline;
}

/* Sign in button */
.login-btn {
    background: linear-gradient(135deg, #71bf44 0%, #5aad35 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    height: 52px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    box-shadow: 0 2px 8px rgba(113, 191, 68, 0.25);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.login-btn:hover {
    color: #fff;
    background: #65ad3c;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(113, 191, 68, 0.3);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(113, 191, 68, 0.2);
}

/* Help & Footer (light) */
.login-password-rules {
    font-size: 0.82rem;
    color: #4b5563;
    background: #f0f7eb;
    border: 1px solid #d4edcc;
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    line-height: 1.5;
}

.login-password-rules i {
    color: var(--theme-color, #71bf44);
}

.login-help {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.login-help p {
    font-size: 0.875rem;
    color: #495057;
    margin: 0;
    line-height: 1.5;
}

.login-help a {
    color: var(--theme-color, #71bf44);
    text-decoration: none;
}

.login-help a:hover {
    text-decoration: underline;
}

.login-help-info-btn {
    background: none;
    border: none;
    padding: 0 0 0 0.25rem;
    color: var(--theme-color, #71bf44);
    font-size: 0.9rem;
    cursor: pointer;
    vertical-align: middle;
    line-height: 1;
    transition: opacity 0.2s;
}

.login-help-info-btn:hover {
    opacity: 0.75;
}

/* Help modal */
.login-help-modal {
    border-radius: 16px;
    border: none;
    overflow: hidden;
}

.login-help-modal-header {
    background: linear-gradient(135deg, #f8fdf5 0%, #eef7e8 100%);
    border-bottom: 1px solid #ddefd4;
    padding: 1.25rem 1.5rem;
    gap: 0.9rem;
    align-items: flex-start;
}

.login-help-modal-icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--theme-color, #71bf44);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex: 0 0 auto;
    box-shadow: 0 2px 8px rgba(113, 191, 68, 0.3);
}

.login-help-modal-header .modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.1rem;
}

.login-help-modal-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

.login-help-modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.login-help-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.login-help-step-num {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: var(--theme-color, #71bf44);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-top: 0.1rem;
}

.login-help-step strong {
    display: block;
    font-size: 0.9rem;
    color: #111827;
    margin-bottom: 0.2rem;
}

.login-help-step p {
    font-size: 0.85rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.55;
}

.login-help-modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 0.85rem 1.5rem;
    gap: 0.6rem;
}

.btn-theme {
    background: linear-gradient(135deg, #71bf44 0%, #5aad35 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.12);
    box-shadow: 0 2px 8px rgba(113, 191, 68, 0.25);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-theme:hover {
    background: #65ad3c;
    color: #fff;
    box-shadow: 0 4px 16px rgba(113, 191, 68, 0.3);
    transform: translateY(-1px);
}

.btn-theme:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(113, 191, 68, 0.2);
    color: #fff;
}

.login-help-modal-support {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0 1.5rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    font-size: 0.82rem;
    color: #4b5563;
    line-height: 1.5;
}

.login-help-modal-support i {
    color: var(--theme-color, #71bf44);
    font-size: 0.95rem;
    margin-top: 0.1rem;
    flex: 0 0 auto;
}

.login-help-modal-support a {
    color: var(--theme-color, #71bf44);
    text-decoration: none;
    font-weight: 600;
}

.login-help-modal-support a:hover {
    text-decoration: underline;
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.login-footer p {
    font-size: 0.8rem;
    color: #adb5bd;
    margin: 0;
}

.login-footer a {
    color: #6c757d;
    text-decoration: none;
}

.login-footer a:hover {
    color: var(--theme-color, #71bf44);
}

/* ---- Decorative background layer ---- */
.login-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Floating icon badges */
@keyframes loginIconFloat {
    0%, 100% { transform: translateY(0)    rotate(0deg);  }
    33%       { transform: translateY(-10px) rotate(5deg);  }
    66%       { transform: translateY(6px)  rotate(-4deg); }
}

.login-deco-watermark {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 1.5px solid rgba(var(--theme-color-rgb, 113, 191, 68), 0.25);
    color: var(--theme-color, #71bf44);
    box-shadow: 0 4px 16px rgba(113, 191, 68, 0.12);
    line-height: 1;
    animation: loginIconFloat 9s ease-in-out infinite;
}

.login-deco-watermark--1 {
    width: 110px; height: 110px; font-size: 2.6rem;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.18;
    animation-duration: 20s;
    animation-delay: 0s;
}

.login-deco-watermark--2 {
    width: 90px; height: 90px; font-size: 2rem;
    top: 8%; right: 7%;
    opacity: 0.28;
    animation-duration: 11s;
    animation-delay: -3s;
}

.login-deco-watermark--3 {
    width: 76px; height: 76px; font-size: 1.65rem;
    bottom: 10%; left: 7%;
    opacity: 0.25;
    animation-duration: 13s;
    animation-delay: -6s;
}

.login-deco-watermark--4 {
    width: 84px; height: 84px; font-size: 1.8rem;
    top: 12%; left: 6%;
    opacity: 0.22;
    animation-duration: 15s;
    animation-delay: -1s;
}

/* Validation summary */
.login-validation-summary {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid #f3c4c9;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff5f6 0%, #ffe9ec 100%);
    box-shadow: 0 10px 24px rgba(180, 48, 71, 0.08);
}

.login-validation-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    background: #fff;
    color: #b4233d;
    box-shadow: 0 2px 10px rgba(180, 48, 71, 0.14);
    flex: 0 0 auto;
}

.login-validation-summary-content {
    min-width: 0;
}

.login-validation-summary-title {
    margin-bottom: 0.3rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #842029;
}

.login-validation-summary-list {
    color: #842029;
    font-size: 0.92rem;
}

.login-validation-summary-list ul {
    margin: 0;
    padding-left: 1.1rem;
}

.login-validation-summary-list li + li {
    margin-top: 0.25rem;
}

.login-validation-summary-list.validation-summary-valid {
    display: none;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .login-wrapper {
        flex-direction: column;
        min-height: 100vh;
    }

    .login-hero {
        display: none;
    }

    .login-form-side {
        flex: 1 1 auto;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .login-form-side {
        padding: 1.5rem 1rem;
    }

    .login-form-container {
        max-width: 100%;
    }

    .login-card {
        padding: 1.75rem 1.25rem 1.5rem;
        border-radius: 12px;
    }

    .login-title {
        font-size: 1.35rem;
    }
}
