/* Global login styles — not scoped, so they cannot vanish after culture/dir changes. */

.nf-login-wrapper {
    --nf-green: #2f9e44;
    --nf-green-hover: #2b8a3e;
    --nf-blue: #1c7ed6;
    --nf-red: #e03131;
    --nf-text: #1a2233;
    --nf-muted: #868e96;
    --nf-border: #e9ecef;
    --nf-bg: #f8f9fa;
    background: #fff;
    min-height: 100vh;
}

.nf-login-logo {
    width: auto;
    max-width: min(220px, 70vw);
    max-height: 72px;
    height: auto;
    object-fit: contain;
    transition: max-width 0.3s ease;
}

@media (min-width: 992px) {
    .nf-login-logo {
        max-width: 280px;
        max-height: 96px;
    }
}

.nf-login-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--nf-text);
    letter-spacing: -0.5px;
}

.nf-login-subtitle {
    font-size: 0.9rem;
    color: var(--nf-muted);
    font-weight: 500;
}

.nf-input-group {
    display: flex;
    flex-direction: column;
}

.nf-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--nf-text);
    margin-bottom: 0.5rem;
}

.nf-input {
    width: 100%;
    height: 50px;
    border: 1.5px solid var(--nf-border);
    border-radius: 12px;
    background: var(--nf-bg);
    padding: 0 1rem;
    font-size: 1rem;
    color: var(--nf-text);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.nf-input:focus {
    outline: none;
    border-color: var(--nf-green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(47,158,68,0.1);
}

.nf-input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.nf-input-error {
    border-color: var(--nf-red) !important;
    box-shadow: 0 0 0 4px rgba(224,49,49,0.08) !important;
}

.nf-otp-input {
    text-align: center;
    letter-spacing: 0.6rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.nf-field-error {
    color: var(--nf-red);
    font-size: 0.78rem;
    margin-top: 0.4rem;
    font-weight: 500;
}

.nf-timer {
    font-size: 0.78rem;
    color: var(--nf-muted);
}

.nf-link-btn {
    background: none;
    border: none;
    color: var(--nf-blue);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.nf-link-btn:disabled {
    color: var(--nf-muted);
    cursor: not-allowed;
}

.nf-submit-btn {
    height: 52px;
    border: none;
    border-radius: 12px;
    background: var(--nf-green);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s, background-color 0.2s;
    box-shadow: 0 6px 16px rgba(47, 158, 68, 0.25);
}

.nf-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    background: var(--nf-green-hover);
    box-shadow: 0 8px 20px rgba(47, 158, 68, 0.35);
}

.nf-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.nf-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.nf-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    position: relative;
}

.nf-alert-success {
    background: rgba(47,158,68,0.08);
    border: 1px solid rgba(47,158,68,0.25);
}

.nf-alert-danger {
    background: rgba(224,49,49,0.08);
    border: 1px solid rgba(224,49,49,0.25);
}

.nf-alert-warning {
    background: rgba(245,159,0,0.08);
    border: 1px solid rgba(245,159,0,0.25);
}

.nf-alert-info {
    background: rgba(28,126,214,0.08);
    border: 1px solid rgba(28,126,214,0.25);
}

.nf-alert-icon {
    font-size: 1.8rem;
}

.nf-alert-success .nf-alert-icon {
    color: var(--nf-green);
}

.nf-alert-danger .nf-alert-icon {
    color: var(--nf-red);
}

.nf-alert-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.nf-alert-title {
    font-weight: 700;
    color: var(--nf-text);
    font-size: 0.9rem;
}

.nf-alert-message {
    font-size: 0.82rem;
    color: var(--nf-muted);
}

.nf-alert-close {
    background: none;
    border: none;
    color: var(--nf-muted);
    cursor: pointer;
    padding: 0;
}

.nf-login-aside {
    background: linear-gradient(135deg, #0b1f33 0%, #103a5c 100%);
    position: relative;
    overflow: hidden;
}

.nf-aside-overlay {
    position: absolute;
    inset: 0;
    background-image: url(/assets/media/misc/auth-bg2.png);
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

@media (max-width: 991px) {
    .nf-login-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nf-login-wrapper .d-flex.flex-center {
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .nf-login-wrapper > div:first-child {
        width: 100% !important;
        padding: 2rem 1.5rem !important;
    }

    .nf-login-wrapper .w-lg-450px {
        width: 100% !important;
        padding: 0 !important;
    }

    .nf-login-wrapper .form.w-100 {
        width: 100% !important;
    }

    .nf-login-aside {
        display: none !important;
    }
}
