/* Agent login (/agent) in the new home-page design: white page, Inter, one purple accent,
   left panel = the login modal's gradient + animated globe (see home-v2.css "Login / signup modal"). */
:root {
    --al-ink: #101828;
    --al-text: #2E2E2E;
    --al-muted: #5D5D5D;
    --al-soft: #98A2B3;
    --al-line: #E2E8F0;
    --al-input: #D0D5DD;
    --al-purple: #7F56D9;
    --al-purple-hover: #6941C6;
    --al-purple-light: #F4F3FF;
    --al-red: #DC3545;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--al-text);
    font: 15px/1.55 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--al-purple); text-decoration: none; }
a:hover { color: var(--al-purple-hover); }

.al-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.al-header {
    height: 68px;
    border-bottom: 1px solid var(--al-line);
    background: #fff;
}

.al-header .al-wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.al-logo img { display: block; height: 40px; width: auto; }

.al-header__link {
    color: var(--al-text);
    font-size: 14px;
    font-weight: 600;
}

/* ---------- card ---------- */
.al-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 24px 0;
}

/* the card fills the screen between header and footer (header 68 + footer ~49 + main padding 48),
   capped so it doesn't stretch on very tall monitors */
.al-card {
    display: flex;
    min-height: min(780px, calc(100vh - 165px));
    border: 1px solid var(--al-line);
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 48px -24px rgba(16, 24, 40, 0.18);
}

.al-visual {
    position: relative;
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 24px;
    background:
        radial-gradient(circle at 20% 15%, rgba(193, 168, 237, 0.9) 0, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(250, 211, 181, 0.9) 0, transparent 45%),
        linear-gradient(180deg, #C7D9FC 0%, #E5D8FB 35%, #F9D6E3 70%, #FCE2D7 100%);
}

.al-globe {
    width: 100%;
    /* grows with the screen height so the globe fills the panel */
    max-width: clamp(300px, calc(100vh - 330px), 500px);
    aspect-ratio: 1 / 1;
}

.al-globe object {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* logo_new.svg has empty space above the wordmark; pull it up towards the globe */
.al-visual__logo { display: block; width: 250px; height: auto; margin-top: -14px; }

.al-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 64px;
}

.al-form h1 {
    margin: 0 0 6px;
    color: var(--al-ink);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.al-form .al-sub {
    margin: 0 0 28px;
    color: var(--al-muted);
    font-size: 15.5px;
}

/* ---------- fields ---------- */
.al-field { margin-bottom: 18px; }

.al-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--al-ink);
    font-size: 14px;
    font-weight: 600;
}

.al-field input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid var(--al-input);
    border-radius: 8px;
    background: #fff;
    color: var(--al-ink);
    font: inherit;
    transition: border-color .12s, box-shadow .12s;
}

.al-field input::placeholder { color: var(--al-soft); }
.al-field input:hover { border-color: #9FB6CE; }
.al-field input:focus {
    outline: none;
    border-color: var(--al-purple);
    box-shadow: 0 0 0 3px rgba(127, 86, 217, 0.15);
}

.al-field.has-error input { border-color: var(--al-red); }

.al-error {
    display: block;
    margin-top: 6px;
    color: var(--al-red);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
}

.al-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #FDEDED;
    color: #B3261E;
    font-size: 13.5px;
    line-height: 1.5;
}

.al-alert strong { display: block; margin-bottom: 2px; }

.al-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 2px 0 18px;
    color: var(--al-text);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.al-check input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--al-purple);
    cursor: pointer;
}

.al-btn {
    display: block;
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 8px;
    background: var(--al-purple);
    color: #fff;
    font: inherit;
    font-size: 15.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .13s;
}

.al-btn:hover { background: var(--al-purple-hover); }
.al-btn:focus-visible { outline: 3px solid rgba(127, 86, 217, 0.35); outline-offset: 2px; }

/* ---------- Android app ---------- */
.al-app {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--al-purple-light);
}

.al-app span { color: var(--al-muted); font-size: 13.5px; line-height: 1.45; }
.al-app img { display: block; width: 150px; height: auto; flex-shrink: 0; }

/* ---------- footer ---------- */
.al-footer {
    border-top: 1px solid var(--al-line);
    padding: 14px 0;
    color: var(--al-muted);
    font-size: 13px;
}

.al-footer .al-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
}


/* ---------- responsive ---------- */
/* short laptop screens (1366x768 etc.): tighter form spacing so the card still fits without scrolling */
@media (min-width: 992px) and (max-height: 760px) {
    .al-header { height: 60px; }
    .al-main { padding: 16px 0; }
    .al-card { min-height: calc(100vh - 135px); }
    .al-globe { max-width: clamp(240px, calc(100vh - 260px), 420px); }
    .al-visual__logo { width: 190px; }
    .al-form { padding: 24px 48px; }
    .al-form h1 { font-size: 25px; }
    .al-form .al-sub { margin-bottom: 16px; }
    .al-field { margin-bottom: 12px; }
    .al-field input { height: 44px; }
    .al-btn { height: 46px; }
    .al-check { margin-bottom: 14px; }
    .al-app { margin-top: 16px; padding: 10px 14px; }
    .al-footer { padding: 10px 0; }
}

@media (max-width: 991.98px) {
    .al-visual { display: none; }
    .al-card { max-width: 520px; min-height: 0; margin: 0 auto; }
}

@media (max-width: 575.98px) {
    .al-wrap { padding: 0 16px; }
    .al-main { padding: 24px 0; align-items: flex-start; }
    .al-card { border: 0; box-shadow: none; border-radius: 0; }
    .al-form { padding: 8px 4px; }
    .al-form h1 { font-size: 23px; }
    .al-app { flex-direction: column; align-items: flex-start; }
    .al-footer .al-wrap { flex-direction: column; align-items: flex-start; }
}
