/**
 * UAE visa-desk agent login v1 (ul1) — 2026-10-08. Presentation only: no form/auth/JS changes.
 * Scope: body.ul1-uae-login (added only by uae_agent_login.php). Loaded last in <head>, after the inline <style>.
 * Palette = live UAE visa desk panel (assets/css/uae-visa-portal.css + includes/uae_visa/layout_start.php):
 *   app bar charcoal #3A3A3A with 3px sky line #7EC8E3, active/sky text #9FDCFF, primary slate #4C6891 (--uv-navy),
 *   teal #0E7490 (--uv-teal, links/focus), page #DBE7F3, card #FFFFFF, border #D7DEE8, text #132337, muted #64748B.
 * Orange/gold never carries white text. Font: Inter self-hosted via admin-md-fonts.css.
 */
body.ul1-uae-login {
    --ul1-bar: #3A3A3A;
    --ul1-sky: #7EC8E3;
    --ul1-sky-text: #9FDCFF;
    --ul1-primary: #4C6891;
    --ul1-primary-strong: #3A5274;
    --ul1-teal: #0E7490;
    --ul1-page: #DBE7F3;
    --ul1-card: #FFFFFF;
    --ul1-border: #D7DEE8;
    --ul1-text: #132337;
    --ul1-text-2: #334155;
    --ul1-muted: #64748B;
    --ul1-radius: 10px;
    --ul1-font: Inter, "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    margin: 0;                                  /* live: default 8px white frame around the page */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--ul1-font);
    color: var(--ul1-text);
    background: var(--ul1-page);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.ul1-uae-login *,
body.ul1-uae-login *::before,
body.ul1-uae-login *::after { box-sizing: border-box; }
body.ul1-uae-login button,
body.ul1-uae-login input { font-family: inherit; }

/* ---------- App bar (= visa desk .uv-appbar) ---------- */
body.ul1-uae-login .ul1-appbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 28px;
    background: var(--ul1-bar);
    border-bottom: 3px solid var(--ul1-sky);
    color: #FFFFFF;
}
body.ul1-uae-login .ul1-appbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #FFFFFF;
    text-decoration: none;
}
body.ul1-uae-login .ul1-logo-tile {
    display: inline-flex;
    align-items: center;
    flex: none;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 5px 10px;
}
body.ul1-uae-login .ul1-logo-tile img { display: block; height: 30px; width: auto; max-width: none; }
body.ul1-uae-login .ul1-appbar-name {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.ul1-uae-login .ul1-appbar-chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(126, 200, 227, 0.45);
    background: rgba(255, 255, 255, 0.08);
    color: var(--ul1-sky-text);
    font-size: 13px;
    font-weight: 600;
}
body.ul1-uae-login .ul1-appbar-chip i { font-style: normal; font-size: 9px; color: var(--ul1-sky); }

/* ---------- Page + card shell ---------- */
body.ul1-uae-login .dxb-login-wrap {
    flex: 1;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 40px 24px 20px;
    background: var(--ul1-page);                /* photo moves into the brand panel */
}
body.ul1-uae-login .ul1-shell {
    display: grid;
    grid-template-columns: 420px 500px;
    width: 920px;
    max-width: 100%;
    background: var(--ul1-card);
    border: 1px solid var(--ul1-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(19, 35, 55, 0.14), 0 1px 3px rgba(19, 35, 55, 0.06);
}

/* brand panel: same Dubai photo as live, under a charcoal -> slate overlay (visa desk chrome) */
body.ul1-uae-login .ul1-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 44px 40px 40px;
    color: #FFFFFF;
    background:
        linear-gradient(170deg, rgba(42, 42, 42, 0.90) 0%, rgba(52, 66, 88, 0.86) 50%, rgba(58, 82, 116, 0.92) 100%),
        url("https://images.unsplash.com/photo-1518684079-3c830dcef090?auto=format&fit=crop&w=1600&q=80") center / cover;
}
body.ul1-uae-login .ul1-eyebrow {
    margin: 0 0 12px;
    color: var(--ul1-sky-text);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
body.ul1-uae-login .ul1-brand-title {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}
body.ul1-uae-login .ul1-brand-lead {
    margin: 0 0 26px;
    color: #E2E8F0;
    font-size: 15px;
}
body.ul1-uae-login .ul1-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
body.ul1-uae-login .ul1-points li { display: flex; gap: 12px; align-items: flex-start; color: #E2E8F0; font-size: 14px; line-height: 1.45; }
body.ul1-uae-login .ul1-points strong { display: block; color: #FFFFFF; font-size: 15px; font-weight: 600; }
body.ul1-uae-login .ul1-dot {
    flex: none;
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--ul1-sky);
    box-shadow: 0 0 0 4px rgba(126, 200, 227, 0.22);
}

/* ---------- Form card ---------- */
body.ul1-uae-login .dxb-login-card {
    width: auto;
    margin: 0;
    padding: 44px 44px 36px;
    background: var(--ul1-card);
    border-radius: 0;
    box-shadow: none;
}
body.ul1-uae-login .dxb-login-card h1 {
    margin: 0 0 6px;
    font-family: var(--ul1-font);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ul1-text);
}
body.ul1-uae-login .dxb-login-card > p {
    margin: 0 0 24px;
    color: var(--ul1-muted);
    font-size: 15px;
}
body.ul1-uae-login .dxb-login-card label {
    margin: 16px 0 6px;
    color: var(--ul1-text-2);
    font-size: 14px;
    font-weight: 600;
}
body.ul1-uae-login .dxb-login-card input[type="email"],
body.ul1-uae-login .dxb-login-card input[type="password"],
body.ul1-uae-login .dxb-login-card input[type="text"] {
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--ul1-border);
    border-radius: var(--ul1-radius);
    background: #FFFFFF;
    color: var(--ul1-text);
    font-size: 16px;                            /* >=16px: no iOS zoom */
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
body.ul1-uae-login .dxb-login-card .dxb-password input { padding-right: 76px; }
body.ul1-uae-login .dxb-login-card input[type="email"]:focus,
body.ul1-uae-login .dxb-login-card input[type="password"]:focus,
body.ul1-uae-login .dxb-login-card input[type="text"]:focus {
    border-color: var(--ul1-teal);
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.18);
}
body.ul1-uae-login .dxb-login-card .dxb-password button {
    right: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    background: #EEF2F7;
    color: #12324A;
    font-size: 13px;
    font-weight: 600;
}
body.ul1-uae-login .dxb-login-card .dxb-password button:hover { background: #E2E8F0; }
body.ul1-uae-login .dxb-login-card .dxb-password button:focus-visible { outline: 2px solid var(--ul1-teal); outline-offset: 1px; }
body.ul1-uae-login .dxb-login-remember { margin-top: 14px; }
body.ul1-uae-login .dxb-login-remember label { margin: 0; font-size: 14px; font-weight: 500; color: var(--ul1-text-2); }
body.ul1-uae-login .dxb-login-remember input { width: 18px; height: 18px; margin: 0; accent-color: var(--ul1-primary); }
body.ul1-uae-login .dxb-caps { color: #92400E; font-size: 13px; font-weight: 600; }

/* primary = visa desk slate (.uv-btn-check / active nav); white text 5.7:1. Gold dropped. */
body.ul1-uae-login .dxb-login-card button[type="submit"] {
    display: block;
    width: 100%;
    min-height: 50px;
    margin-top: 22px;
    border: 0;
    border-radius: var(--ul1-radius);
    background: var(--ul1-primary);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(76, 104, 145, 0.28);
    transition: background .15s;
}
body.ul1-uae-login .dxb-login-card button[type="submit"]:hover { background: var(--ul1-primary-strong); }
body.ul1-uae-login .dxb-login-card button[type="submit"]:focus-visible { outline: 3px solid rgba(76, 104, 145, 0.45); outline-offset: 2px; }
body.ul1-uae-login .dxb-login-card button[type="submit"]:disabled { opacity: .7; cursor: wait; }

body.ul1-uae-login .dxb-login-error,
body.ul1-uae-login .dxb-login-info {
    border-radius: var(--ul1-radius);
    padding: 12px 14px;
    font-size: 14px;
    margin: 0 0 8px;
}
body.ul1-uae-login .dxb-login-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
body.ul1-uae-login .dxb-login-info { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }

body.ul1-uae-login .dxb-login-links {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #E5EAF0;
    font-size: 14px;
}
body.ul1-uae-login .dxb-login-links a {
    color: var(--ul1-teal);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
body.ul1-uae-login .dxb-login-links a:hover { color: #0B5C73; text-decoration: underline; }
body.ul1-uae-login .dxb-login-links a:focus-visible { outline: 2px solid var(--ul1-teal); outline-offset: 2px; border-radius: 4px; }

body.ul1-uae-login .ul1-foot {
    margin: 0;
    padding: 4px 16px 24px;
    text-align: center;
    color: var(--ul1-muted);
    font-size: 13px;
}

/* ---------- Tablet / mobile ---------- */
@media (max-width: 960px) {
    body.ul1-uae-login .ul1-shell { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); width: 100%; }
}
@media (max-width: 760px) {
    body.ul1-uae-login .ul1-appbar { padding: 8px 14px; }
    body.ul1-uae-login .ul1-logo-tile { padding: 4px 8px; }
    body.ul1-uae-login .ul1-logo-tile img { height: 24px; }
    body.ul1-uae-login .ul1-appbar-name { display: none; }
    body.ul1-uae-login .ul1-appbar-chip { font-size: 12px; padding: 4px 10px; }
    body.ul1-uae-login .dxb-login-wrap { place-items: start center; padding: 16px 14px 12px; }
    body.ul1-uae-login .ul1-shell { grid-template-columns: 1fr; border-radius: 14px; }
    /* compact photo strip: eyebrow + title only */
    body.ul1-uae-login .ul1-brand { padding: 22px 20px 20px; }
    body.ul1-uae-login .ul1-eyebrow { margin-bottom: 6px; font-size: 11.5px; }
    body.ul1-uae-login .ul1-brand-title { margin: 0; font-size: 20px; }
    body.ul1-uae-login .ul1-brand-lead,
    body.ul1-uae-login .ul1-points { display: none; }
    body.ul1-uae-login .dxb-login-card { padding: 24px 20px 22px; }
    body.ul1-uae-login .dxb-login-card h1 { font-size: 24px; }
    body.ul1-uae-login .dxb-login-card > p { margin-bottom: 14px; font-size: 14px; }
    body.ul1-uae-login .dxb-login-card label { margin-top: 12px; }
    body.ul1-uae-login .dxb-login-links { margin-top: 18px; padding-top: 14px; }
}
@media (max-width: 360px) {
    body.ul1-uae-login .dxb-login-links { font-size: 13px; }
}
