.login-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.login-card {
    position: relative;
    width: 520px;
    max-width: 90%;
    background: var(--card);
    padding: 50px 45px;
    border-radius: 6px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

.login-submitting-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.82);
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
}

.login-submitting-overlay[hidden] {
    display: none;
}

.submitting-spinner {
    width: 36px;
    height: 36px;
    border: 4px solid rgba(11, 79, 138, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: submitting-spin 0.8s linear infinite;
}

@keyframes submitting-spin {
    to {
        transform: rotate(360deg);
    }
}

.login-title {
    text-align: center;
    font-size: 32px;
    color: var(--primary);
    font-weight: 600;
}

.login-sub {
    text-align: center;
    color: var(--text);
    font-size: 14px;
    margin-bottom: 30px;
}

.login-label {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 600;
    display: block;
}

.login-input {
    width: 100%;
    padding: 14px 45px 14px 45px;
    /* 🔥 left + right space */
    height: 48px;
    /* 🔥 fixed height (important) */
    border-radius: 6px;
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 600;
    /* 🔥 slightly bold */
    color: #1e293b;
}

.login-input.input-error {
    border: 2px solid #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.login-input::placeholder {
    color: #475569;
    /* medium dark */
    font-weight: 400;
}

.login-btn {
    width: 100%;
    min-height: 54px;
    border: 1px solid rgba(232, 240, 254, 0.2);
    border-radius: 0;
    background: var(--btn-red);
    color: var(--surface);
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    font-family: 'Material Icons';
    font-size: 16px;
    padding: 14px 20px;
    box-sizing: border-box;
}

.login-btn:hover {
    background: #ba0c2f;
}

.login-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 20px;
}

.login-row a {
    color: var(--primary);
    text-decoration: none;
}

.login-icon {
    text-align: center;
    margin-bottom: 10px;
}

.login-icon .material-icons {
    font-size: 40px;
    color: var(--primary);
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #6b7280;
    pointer-events: none;
}

.eye-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    font-size: 20px;
}

.lock-circle {
    width: 70px;
    height: 70px;
    background: var(--soft);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-circle i {
    font-size: 32px;
    color: var(--primary);
}

.remember {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text);
}

.remember input[type="checkbox"] {
    width: 14px;
    height: 14px;
}

.forgot {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
}

.forgot-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.forgot-buttons button {
    flex: 1;
}

.close-btn {
    background: #e60023;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.forgot-message {
    margin-top: 20px;
    text-align: center;
    font-style: italic;
    font-size: 14px;
    line-height: 1.6;
    font-family: Georgia, serif;
    color: #444;
}

#forgotSection {
    animation: fadeIn .3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.forgot-divider {
    margin: 30px 0 25px;
    border: 0;
    border-top: 1px solid #dbe3ef;
}

.forgot-heading {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

.disabled-section {
    opacity: 0.35;
    pointer-events: none;
    filter: grayscale(40%);
}

.error-banner {
    background: #ffe5e5;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.success-banner {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.login-input:focus {
    border-color: #0078d4 !important;
    box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.20);
    outline: none;
}

.login-input.input-error:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
}