/* Next Holidays — admin login */
:root {
    --nh-login-navy: #0c1e3a;
    --nh-login-blue: #1a4fd6;
    --nh-login-coral: #e8437a;
    --nh-login-coral-dark: #c92f65;
    --nh-login-text: #1e293b;
    --nh-login-muted: #64748b;
    --nh-login-border: #e2e8f0;
    --nh-login-input-bg: #f8fafc;
    --nh-login-radius: 14px;
    --nh-login-shadow: 0 24px 60px rgba(12, 30, 58, 0.22);
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body.nh-login-body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Ubuntu', sans-serif;
    color: var(--nh-login-text);
    background: var(--nh-login-navy);
}

.nh-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
        linear-gradient(135deg, #0c1e3a 0%, #1a4fd6 48%, #e8437a 100%);
}

.nh-login-shell {
    width: 100%;
    max-width: 440px;
}

.nh-login-card {
    background: #fff;
    border-radius: var(--nh-login-radius);
    box-shadow: var(--nh-login-shadow);
    padding: 36px 32px 32px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.nh-login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.nh-login-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-block;
    margin-bottom: 14px;
    object-fit: contain;
    object-position: center;
    vertical-align: middle;
    background: #fff;
    box-shadow: 0 8px 20px rgba(26, 79, 214, 0.18);
}

.nh-login-brand h1 {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
    color: var(--nh-login-text);
}

.nh-login-brand p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--nh-login-muted);
}

.nh-login-brand a {
    color: var(--nh-login-blue);
    text-decoration: none;
    font-weight: 600;
}

.nh-login-brand a:hover {
    color: var(--nh-login-coral);
    text-decoration: underline;
}

.nh-login-env {
    font-size: 0.9rem;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 8px;
}

.nh-login-env-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    line-height: 1.2;
}

.nh-login-env-badge--test {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.nh-login-env-badge--live {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.nh-login-footer a .fa-external-link {
    font-size: 0.75em;
    margin-left: 4px;
    opacity: 0.85;
}

.nh-login-alert {
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.875rem;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}

/* Icon sits on the same line as the first text line (title/paragraph). */
.nh-login-alert > i:first-child {
    flex: 0 0 auto;
    width: 1.15rem;
    margin-top: 0.2em;
    font-size: 1.1rem;
    line-height: 1;
    text-align: center;
}

.nh-login-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.nh-login-alert--success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    align-items: center;
}

.nh-login-alert--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    align-items: center;
}

/* Single-line success / info / simple alerts: icon centered top-to-bottom. */
.nh-login-alert--success > i:first-child,
.nh-login-alert--info > i:first-child,
.nh-login-alert--simple > i:first-child,
.nh-login-alert--center > i:first-child {
    margin-top: 0;
}

.nh-login-alert--simple {
    align-items: center;
}

.nh-login-alert-body {
    flex: 1;
    min-width: 0;
}

.nh-login-alert-title {
    display: block;
    margin: 0 0 4px;
    font-size: 0.95rem;
    line-height: 1.3;
}

.nh-login-alert-body p {
    margin: 0 0 6px;
    line-height: 1.45;
}

.nh-login-alert-body p:last-child {
    margin-bottom: 0;
}

.nh-login-alert-emphasis {
    font-weight: 700;
}

.nh-login-alert--lock {
    background: #fff7ed;
    border-color: #fdba74;
    color: #9a3412;
    align-items: flex-start;
}

.nh-login-alert--lock .nh-login-alert-title {
    color: #9a3412;
}

.nh-login-alert--last-attempt {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
    align-items: flex-start;
}

.nh-login-alert--last-attempt .nh-login-alert-title,
.nh-login-alert--last-attempt .nh-login-alert-emphasis {
    color: #92400e;
}

.nh-login-alert--center {
    align-items: center;
    text-align: left;
}

.nh-login-alert--center > span {
    flex: 1;
    min-width: 0;
}

.nh-login-field {
    margin-bottom: 18px;
}

.nh-login-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nh-login-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nh-login-input-wrap {
    position: relative;
}

.nh-login-input-wrap .nh-login-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
}

.nh-login-input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--nh-login-border);
    border-radius: 10px;
    background: var(--nh-login-input-bg);
    padding: 0 44px 0 42px;
    font-size: 0.95rem;
    color: var(--nh-login-text);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.nh-login-input:focus {
    outline: none;
    border-color: var(--nh-login-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 79, 214, 0.12);
}

.nh-login-input--password {
    padding-right: 46px;
}

.nh-login-toggle-pwd {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}

.nh-login-toggle-pwd:hover {
    color: var(--nh-login-blue);
    background: rgba(26, 79, 214, 0.08);
}

.nh-login-toggle-pwd:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 79, 214, 0.25);
}

.nh-login-options {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 22px;
    flex-wrap: wrap;
}

.nh-login-remember {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    flex: 1;
    min-width: 200px;
}

.nh-login-remember input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--nh-login-coral);
    cursor: pointer;
    flex-shrink: 0;
}

.nh-login-remember-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nh-login-remember-text strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--nh-login-text);
}

.nh-login-remember-text span {
    font-size: 0.78rem;
    color: var(--nh-login-muted);
    line-height: 1.35;
}

.nh-login-submit {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--nh-login-coral) 0%, var(--nh-login-coral-dark) 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    box-shadow: 0 10px 24px rgba(232, 67, 122, 0.35);
}

.nh-login-submit:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(232, 67, 122, 0.4);
}

.nh-login-submit:active {
    transform: translateY(0);
}

.nh-login-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.nh-login-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--nh-login-border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--nh-login-muted);
}

.nh-login-footer a {
    color: var(--nh-login-blue);
    font-weight: 600;
    text-decoration: none;
}

.nh-login-footer a:hover {
    text-decoration: underline;
}

/* Reset password — strength + live requirements */
.nh-login-shell--wide {
    max-width: 480px;
}

.nh-pwd-strength {
    margin-top: 10px;
}

.nh-pwd-strength-track {
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.nh-pwd-strength-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: #94a3b8;
    transition: width 0.2s ease, background 0.2s ease;
}

.nh-pwd-strength-label {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nh-login-muted);
}

.nh-pwd-strength.is-weak .nh-pwd-strength-fill { background: #ef4444; }
.nh-pwd-strength.is-weak .nh-pwd-strength-label { color: #b91c1c; }
.nh-pwd-strength.is-fair .nh-pwd-strength-fill { background: #f59e0b; }
.nh-pwd-strength.is-fair .nh-pwd-strength-label { color: #b45309; }
.nh-pwd-strength.is-good .nh-pwd-strength-fill { background: #3b82f6; }
.nh-pwd-strength.is-good .nh-pwd-strength-label { color: #1d4ed8; }
.nh-pwd-strength.is-strong .nh-pwd-strength-fill { background: #22c55e; }
.nh-pwd-strength.is-strong .nh-pwd-strength-label { color: #15803d; }

.nh-pwd-caps {
    margin: 8px 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #b45309;
}

.nh-pwd-requirements {
    margin: 4px 0 18px;
    padding: 0;
    border: 1px solid var(--nh-login-border);
    border-radius: 10px;
    background: #f8fafc;
    overflow: hidden;
}

.nh-pwd-requirements-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
}

.nh-pwd-requirements-toggle:hover {
    background: #f1f5f9;
}

.nh-pwd-requirements-title {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--nh-login-muted);
}

.nh-pwd-requirements-toggle-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--nh-login-coral);
}

.nh-pwd-requirements-body {
    padding: 0 14px 12px;
}

.nh-pwd-requirements.is-collapsed .nh-pwd-requirements-body {
    display: none;
}

.nh-pwd-requirements-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
}

.nh-pwd-requirements-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nh-pwd-requirements-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 6px;
    font-size: 0.88rem;
    color: var(--nh-login-muted);
    line-height: 1.35;
}

.nh-pwd-requirements-list li:last-child {
    margin-bottom: 0;
}

.nh-pwd-requirements-list li i {
    width: 16px;
    margin-top: 2px;
    text-align: center;
}

.nh-pwd-requirements-list li.is-pass {
    color: #15803d;
}

.nh-pwd-requirements-list li.is-fail {
    color: #b91c1c;
}

.nh-pwd-security-note {
    margin: 10px 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--nh-login-muted);
}

@media (max-width: 520px) {
    .nh-pwd-requirements-cols {
        grid-template-columns: 1fr;
    }
}

.nh-pwd-match {
    margin: 8px 0 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.nh-pwd-match.is-pass {
    color: #15803d;
}

.nh-pwd-match.is-fail {
    color: #b91c1c;
}

.nh-login-submit[aria-disabled="true"],
.nh-login-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

@media (max-width: 480px) {
    .nh-login-card {
        padding: 28px 20px 24px;
    }

    .nh-login-shell--wide {
        max-width: 100%;
    }
}
