/* ============================================================
   login.css — the sign-in page (Views/Account/Login.cshtml).
   The animated "enquiry → delivered" hero and the form column.
   Every colour derives from the theme's variables, so the user's
   Theme Studio accent and dark mode carry onto this page.
   ============================================================ */

.atlas-auth {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    min-height: 100vh;
}

/* ============ HERO ============ */
.atlas-hero {
    --hero-0: color-mix(in srgb, var(--phoenix-primary) 14%, #070a12);
    --hero-1: color-mix(in srgb, var(--phoenix-primary) 24%, #0b1020);
    --hero-2: color-mix(in srgb, var(--phoenix-primary) 42%, #121a2e);
    --acc: var(--phoenix-primary);
    --glow: color-mix(in srgb, var(--phoenix-primary) 50%, #ffffff);
    --ok: var(--phoenix-success);
    --mid: var(--phoenix-warning);
    --muted: color-mix(in srgb, var(--phoenix-primary) 14%, #b4bccb);
    --line: color-mix(in srgb, var(--glow) 28%, transparent);

    position: relative;
    display: flex;
    padding: 3.4rem 3.5rem;
    overflow: hidden;
    color: #eef2f9;
    background: radial-gradient(130% 120% at 12% -8%, var(--hero-2) 0%, var(--hero-1) 48%, var(--hero-0) 100%);
}

.atlas-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.atlas-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .55;
    background-image:
        linear-gradient(color-mix(in srgb, var(--glow) 11%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--glow) 11%, transparent) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(120% 100% at 30% 15%, #000 42%, transparent 92%);
    mask-image: radial-gradient(120% 100% at 30% 15%, #000 42%, transparent 92%);
}

.atlas-hero::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -90px;
    top: -70px;
    background: radial-gradient(circle, color-mix(in srgb, var(--acc) 40%, transparent), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

.atlas-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.atlas-brand-mark {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border-radius: .8rem;
    background: var(--acc);
    color: var(--aira-on-accent, #fff);
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--acc) 80%, transparent);
}

.atlas-brand b { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: .14em; line-height: 1; }
.atlas-brand small { display: block; margin-top: .3rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.atlas-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    align-self: flex-start;
    margin-top: 2.2rem;
    padding: .45rem .9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--glow) 8%, transparent);
    color: var(--glow);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.atlas-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--glow);
    animation: atlasPulse 2.2s infinite;
}

@keyframes atlasPulse {
    0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--glow) 60%, transparent); }
    70%  { box-shadow: 0 0 0 8px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---- the pipeline: one shared 7s clock, no delays, so every part resets together ---- */
.atlas-pipe { margin: 2.6rem 0 2.4rem; }

.atlas-rail {
    position: relative;
    height: 3px;
    margin: 0 16px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--glow) 22%, transparent);
}

.atlas-rail .fill {
    position: absolute;
    inset: 0;
    width: 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--acc), var(--glow));
    box-shadow: 0 0 12px color-mix(in srgb, var(--glow) 50%, transparent);
    animation: atlasFill 7s ease-in-out infinite;
}

@keyframes atlasFill { 0% { width: 0; } 54%, 100% { width: 100%; } }

.atlas-docket {
    position: absolute;
    top: -12px;
    left: 0;
    z-index: 3;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff, var(--glow));
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--glow) 18%, transparent), 0 8px 18px -5px var(--glow);
    color: var(--hero-1);
    animation: atlasTravel 7s ease-in-out infinite;
}

.atlas-docket svg { width: 13px; height: 13px; }

@keyframes atlasTravel {
    0%        { left: 0; opacity: 0; }
    3%        { opacity: 1; }
    54%       { left: 100%; transform: translateX(-100%); opacity: 1; }
    60%, 100% { left: 100%; transform: translateX(-100%); opacity: 0; }
}

.atlas-nodes {
    position: relative;
    top: -14px;
    display: flex;
    justify-content: space-between;
    margin: 0 2px;
}

.atlas-node {
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
}

.atlas-node .dot {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid var(--line);
    background: var(--hero-1);
    color: var(--muted);
}

.atlas-node .dot svg { width: 15px; height: 15px; }

.atlas-node small {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
}

.atlas-node.n1 .dot { animation: atlasN1 7s infinite; }
.atlas-node.n2 .dot { animation: atlasN2 7s infinite; }
.atlas-node.n3 .dot { animation: atlasN3 7s infinite; }
.atlas-node.n4 .dot { animation: atlasN4 7s infinite; }
.atlas-node.n5 .dot { animation: atlasN5 7s infinite; }

/* Accepted and Delivered light in the success colour; production in the warning colour. */
@keyframes atlasN1 { 0%, 6%  {} 10%, 100% { background: var(--acc); border-color: var(--glow); color: #fff; } }
@keyframes atlasN2 { 0%, 18% {} 22%, 100% { background: var(--ok);  border-color: var(--ok);   color: #fff; } }
@keyframes atlasN3 { 0%, 30% {} 34%, 100% { background: var(--acc); border-color: var(--glow); color: #fff; } }
@keyframes atlasN4 { 0%, 42% {} 46%, 100% { background: var(--mid); border-color: var(--mid);  color: #fff; } }
@keyframes atlasN5 { 0%, 52% {} 56%, 100% { background: var(--ok);  border-color: var(--ok);   color: #fff; } }

.atlas-stamp-wrap { height: 34px; margin-top: 26px; text-align: center; }

.atlas-stamp {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .42rem .95rem;
    border: 2px solid var(--ok);
    border-radius: 9px;
    color: var(--ok);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .24em;
    opacity: 0;
    animation: atlasStamp 7s infinite;
}

.atlas-stamp svg { width: 14px; height: 14px; }

@keyframes atlasStamp {
    0%, 56% { opacity: 0; transform: scale(1.4) rotate(-8deg); }
    62%     { opacity: 1; transform: scale(1) rotate(-3deg); }
    92%     { opacity: 1; }
    100%    { opacity: 0; }
}

.atlas-hero-copy h3 {
    margin: 0 0 .7rem;
    color: #f4f7fd;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.atlas-hero-copy h3 em { font-style: normal; color: var(--glow); }
.atlas-hero-copy h3 em.ok { color: var(--ok); }

.atlas-hero-copy p {
    max-width: 46ch;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
}

.atlas-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.1rem;
}

.atlas-pills span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .42rem .65rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .03);
    color: #d6dce6;
    font-size: .76rem;
    font-weight: 600;
}

.atlas-pills svg { width: 13px; height: 13px; color: var(--glow); }

/* ============ FORM ============ */
.atlas-auth-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: var(--phoenix-emphasis-bg);
}

.atlas-auth .auth-form-box { width: 100%; max-width: 25rem; }
.atlas-auth .auth-form-box h3 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.atlas-auth .auth-logo { height: 3.4rem; width: auto; }

.atlas-auth .form-icon-container .form-icon {
    width: 16px;
    height: 16px;
    color: var(--phoenix-tertiary-color);
}

.atlas-auth .btn-password-toggle svg { width: 18px; height: 18px; }

.atlas-auth .otp-digit {
    width: 48px;
    height: 56px;
    font-size: 1.3rem;
    font-weight: 800;
    text-align: center;
}

/* Below lg the form is the page: no hero to scroll past. */
@media (max-width: 991.98px) {
    .atlas-auth { grid-template-columns: 1fr; }
    .atlas-hero { display: none; }
    .atlas-auth-form { min-height: 100vh; padding: 2.5rem 1.5rem; }
}

@media (max-width: 400px) {
    .atlas-auth .otp-digit { width: 40px; height: 48px; font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .atlas-hero * { animation: none !important; }
    .atlas-rail .fill { width: 100%; }
    .atlas-docket { display: none; }
    .atlas-node .dot { background: var(--acc); border-color: var(--glow); color: #fff; }
    .atlas-node.n2 .dot, .atlas-node.n5 .dot { background: var(--ok); border-color: var(--ok); }
    .atlas-node.n4 .dot { background: var(--mid); border-color: var(--mid); }
    .atlas-stamp { opacity: 1; transform: none; }
}

/* the logo pair the top bar uses: dark text on light, light text on dark */
html[data-bs-theme="dark"] .atlas-auth .auth-logo.is-dark,
html:not([data-bs-theme="dark"]) .atlas-auth .auth-logo.is-light { display: none; }
