/*
   Every Sky System — Login Page Styles
   Shared across: login.html, login_otp.html, login_password.html

   ج1: the staff login speaks the SAME visual language as the traveler-portal
   login (pages/register-redesign/auth-documents.css, .auth-panel): the logo
   above the card at one size, the same page wash, the same card (border,
   radius, shadow), the same gradient header band and the same solid primary
   button (the 404/403 pages' `.es-btn-primary`). Colours are --es-* only.
*/

html, body {
    min-height: 100%;
    background: var(--es-bg);
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 46px 20px 60px;
    background:
        radial-gradient(900px 420px at 50% -120px, color-mix(in srgb, var(--es-accent) 10%, transparent), transparent 60%),
        var(--es-bg);
}

.login-wrap {
    width: 100%;
    max-width: 520px;
}

.login-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 26px;
}

.login-brand img {
    height: 44px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.login-card {
    width: 100%;
    background: var(--es-surface);
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius-2xl);
    box-shadow: var(--es-shadow-lg);
    overflow: hidden;
}

.login-card .es-lang-switch {
    padding: 12px 20px 0;
    margin: 0 !important;
}

.login-header {
    background: var(--es-gradient-brand);
    color: var(--es-white);
    padding: 26px 30px 24px;
    text-align: start;
}

.login-header h1 {
    font-size: var(--es-text-xl);
    font-weight: var(--es-font-bold);
    color: var(--es-white);
    margin: 0;
}

.login-header p {
    color: color-mix(in srgb, var(--es-white) 82%, transparent);
    font-size: var(--es-text-sm);
    margin: 8px 0 0;
}

.login-body {
    padding: 26px 30px 28px;
}

/* ── Form ── */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: var(--es-font-semibold);
    font-size: var(--es-text-sm);
    color: var(--es-gray-700);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid var(--es-border);
    border-radius: var(--es-radius-xl);
    font-size: var(--es-text-md);
    font-family: var(--es-font-primary);
    transition: all var(--es-transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--es-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--es-accent) 12%, transparent);
}

/* OTP input: large centred digits */
.form-control-otp {
    font-size: var(--es-text-2xl);
    font-family: var(--es-font-mono);
    letter-spacing: 4px;
    text-align: center;
    direction: ltr;
}

.form-control-otp::placeholder {
    font-size: var(--es-text-lg);
}

/* ── Alerts ── */
.alert {
    padding: 12px 16px;
    border-radius: var(--es-radius-lg);
    margin-bottom: 20px;
    font-size: var(--es-text-sm);
    border: none;
}

.alert-danger  { background: var(--es-danger-50);  color: var(--es-danger-600); }
.alert-info    { background: var(--es-blue-50);    color: var(--es-blue-600);   }
.alert-success { background: var(--es-success-50); color: var(--es-success-600); }
.alert-warning { background: var(--es-warning-50); color: var(--es-warning-600); }

/* ── Buttons ── (same as .es-btn .es-btn-primary / .es-btn-secondary) */
.btn-login {
    width: 100%;
    padding: 12px 22px;
    background: var(--es-primary);
    color: var(--es-white);
    border: 1.5px solid var(--es-primary);
    border-radius: var(--es-radius-xl);
    font-weight: var(--es-font-semibold);
    font-size: var(--es-text-md);
    cursor: pointer;
    transition: all var(--es-transition-base);
}

.btn-login:hover {
    background: var(--es-primary-hover);
    border-color: var(--es-primary-hover);
}

.btn-login:active {
    background: var(--es-primary-active);
}

.btn-resend {
    width: 100%;
    padding: 12px 22px;
    background: var(--es-surface);
    color: var(--es-gray-700);
    border: 1.5px solid var(--es-border-strong);
    border-radius: var(--es-radius-xl);
    font-weight: var(--es-font-semibold);
    font-size: var(--es-text-md);
    cursor: pointer;
    transition: all var(--es-transition-base);
    margin-top: 10px;
}

.btn-resend:hover {
    background: var(--es-surface-muted);
    border-color: var(--es-accent);
}

/* ── Footer / Links ── */
.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: var(--es-text-xs);
    color: var(--es-text-muted);
}

.login-footer a {
    color: var(--es-accent-hover);
    text-decoration: none;
    font-weight: var(--es-font-semibold);
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ── OTP page extras ── */
.email-display {
    background: var(--es-surface-muted);
    padding: 12px;
    border-radius: var(--es-radius-xl);
    text-align: center;
    margin-bottom: 20px;
    font-size: var(--es-text-sm);
    color: var(--es-gray-700);
}

.email-display strong {
    color: var(--es-text);
    font-weight: var(--es-font-semibold);
}

/* ── Password page extras ── */
.password-toggle {
    cursor: pointer;
    color: var(--es-accent-hover);
    font-size: var(--es-text-sm);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin: 20px 0;
    font-size: var(--es-text-sm);
}

.checkbox-group input {
    margin-inline-end: 8px;
}

.checkbox-group label {
    margin: 0;
    color: var(--es-gray-700);
}
