/*
 * DriveDiggers — Customer Authentication UI
 * File: css/auth.css
 *
 * Used by:
 * - login.html
 * - signup.html
 *
 * Keep this file AFTER css/style.css.
 */

:root {
    --auth-ink: var(--ink, #071322);
    --auth-ink-2: var(--ink-2, #0b1d33);
    --auth-navy: var(--navy, #0b2440);
    --auth-blue: var(--blue, #146cff);
    --auth-blue-2: var(--blue-2, #56a0ff);
    --auth-cyan: var(--cyan, #2dd4bf);
    --auth-white: #ffffff;
    --auth-paper: #f5f8fc;
    --auth-text: #42526a;
    --auth-muted: #718198;
    --auth-line: #dce5f0;
    --auth-success: #18b982;
    --auth-danger: #e74b5b;
    --auth-warning: #f5a524;
    --auth-ease: cubic-bezier(.2, .72, .2, 1);
}

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

.auth-page {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 16% 16%, rgba(20, 108, 255, 0.2), transparent 28%),
        radial-gradient(circle at 85% 82%, rgba(45, 212, 191, 0.09), transparent 25%),
        linear-gradient(125deg, #050d18 0%, #07182b 48%, #0a2946 100%);
    color: var(--auth-text);
    font-family:
        "DM Sans",
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.auth-page button,
.auth-page input {
    font: inherit;
}

.auth-page button,
.auth-page a {
    -webkit-tap-highlight-color: transparent;
}

.auth-page svg {
    display: block;
    max-width: 100%;
}

.auth-page a {
    color: inherit;
    text-decoration: none;
}

.auth-page :focus-visible {
    outline: 3px solid rgba(45, 212, 191, 0.72);
    outline-offset: 3px;
}

.auth-page ::selection {
    background: var(--auth-blue);
    color: #ffffff;
}

.auth-skip-link {
    position: fixed;
    z-index: 9999;
    top: 12px;
    left: 12px;
    padding: 10px 15px;
    transform: translateY(-180%);
    border-radius: 9px;
    background: #ffffff;
    color: var(--auth-ink);
    font-size: 0.86rem;
    font-weight: 800;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.auth-skip-link:focus {
    transform: none;
}

/* =========================================================
   BACKGROUND
   ========================================================= */

.auth-background,
.auth-grid,
.auth-orb {
    position: fixed;
    pointer-events: none;
}

.auth-background {
    z-index: 0;
    inset: 0;
    overflow: hidden;
}

.auth-grid {
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 70px 70px;
    -webkit-mask-image:
        radial-gradient(circle at 40% 40%, #000 0%, rgba(0, 0, 0, 0.72) 40%, transparent 82%);
    mask-image:
        radial-gradient(circle at 40% 40%, #000 0%, rgba(0, 0, 0, 0.72) 40%, transparent 82%);
}

.auth-orb {
    border-radius: 50%;
    filter: blur(8px);
}

.auth-orb-one {
    top: -170px;
    left: -120px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(86, 160, 255, 0.1);
    background:
        radial-gradient(circle, rgba(20, 108, 255, 0.18), transparent 68%);
    box-shadow:
        0 0 0 100px rgba(255, 255, 255, 0.012),
        0 0 0 200px rgba(255, 255, 255, 0.008);
    animation: authOrbFloat 13s ease-in-out infinite;
}

.auth-orb-two {
    right: -140px;
    bottom: -180px;
    width: 500px;
    height: 500px;
    background:
        radial-gradient(circle, rgba(45, 212, 191, 0.12), transparent 68%);
    animation: authOrbFloat 15s ease-in-out -5s infinite reverse;
}

/* =========================================================
   TOP BAR / BRAND
   ========================================================= */

.auth-topbar {
    position: relative;
    z-index: 20;
    display: flex;
    width: min(calc(100% - 48px), 1440px);
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-inline: auto;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    transition:
        transform 0.25s var(--auth-ease),
        opacity 0.25s ease;
}

.auth-brand:hover {
    transform: translateY(-2px);
}

.auth-brand-mark {
    position: relative;
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 14px;
    background:
        radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.21), transparent 38%),
        linear-gradient(145deg, #2b80ff, #0a55d2 62%, #08345f);
    box-shadow:
        0 13px 32px rgba(20, 108, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.17);
    transition:
        transform 0.28s var(--auth-ease),
        box-shadow 0.28s ease;
}

.auth-brand:hover .auth-brand-mark {
    transform: rotate(-4deg) scale(1.04);
    box-shadow:
        0 17px 39px rgba(20, 108, 255, 0.39),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.auth-brand-mark::before {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    content: "";
}

.auth-brand-mark::after {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 7px;
    height: 7px;
    border: 2px solid #0c3159;
    border-radius: 50%;
    background: var(--auth-cyan);
    box-shadow:
        0 0 0 4px rgba(45, 212, 191, 0.12),
        0 0 14px rgba(45, 212, 191, 0.72);
    content: "";
}

.auth-brand-mark span {
    color: transparent;
}

.auth-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.auth-brand-copy strong {
    color: #ffffff;
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-brand-copy small {
    margin-top: 5px;
    color: #9eb3c8;
    font-size: 0.59rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-home-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.105);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #b9cada;
    font-size: 0.81rem;
    font-weight: 750;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition:
        transform 0.25s var(--auth-ease),
        border-color 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.auth-home-link svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-home-link:hover {
    transform: translateX(-3px);
    border-color: rgba(45, 212, 191, 0.25);
    background: rgba(45, 212, 191, 0.06);
    color: #ffffff;
}

/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.auth-shell {
    position: relative;
    z-index: 3;
    display: flex;
    min-height: calc(100vh - 136px);
    align-items: center;
    padding: 28px 24px 46px;
}

.auth-layout {
    display: grid;
    width: min(100%, 1440px);
    grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.74fr);
    align-items: center;
    gap: clamp(54px, 7vw, 105px);
    margin-inline: auto;
}

/* =========================================================
   LEFT SHOWCASE
   ========================================================= */

.auth-showcase {
    display: grid;
    grid-template-columns: minmax(320px, 0.88fr) minmax(340px, 0.9fr);
    align-items: center;
    gap: clamp(35px, 5vw, 70px);
}

.auth-showcase-copy {
    max-width: 620px;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #75b7ff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.auth-eyebrow > span {
    position: relative;
    width: 26px;
    height: 2px;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--auth-cyan), var(--auth-blue-2));
}

.auth-eyebrow > span::after {
    position: absolute;
    inset: 0;
    transform: translateX(-110%);
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    content: "";
    animation: authLineShine 3.2s ease-in-out infinite;
}

.auth-showcase h1 {
    max-width: 670px;
    margin: 0 0 23px;
    color: #ffffff;
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: clamp(2.65rem, 4.4vw, 4.9rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.auth-showcase h1 span {
    display: block;
    background: linear-gradient(90deg, #ffffff 0%, #8fc4ff 47%, #60ead6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-showcase-copy > p {
    max-width: 610px;
    margin: 0;
    color: #a6bacd;
    font-size: clamp(0.98rem, 1.18vw, 1.08rem);
    line-height: 1.8;
}

.auth-benefits {
    display: grid;
    gap: 11px;
    margin-top: 32px;
}

.auth-benefits article {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.028);
    transition:
        transform 0.27s var(--auth-ease),
        border-color 0.27s ease,
        background 0.27s ease;
}

.auth-benefits article:hover {
    transform: translateX(6px);
    border-color: rgba(45, 212, 191, 0.2);
    background: rgba(255, 255, 255, 0.047);
}

.auth-benefit-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(45, 212, 191, 0.19);
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(45, 212, 191, 0.115), rgba(20, 108, 255, 0.1));
    color: #6fe8d7;
}

.auth-benefit-icon svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-benefits strong {
    display: block;
    margin-bottom: 3px;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.35;
}

.auth-benefits small {
    display: block;
    color: #8299af;
    font-size: 0.68rem;
    line-height: 1.45;
}

/* =========================================================
   PORTAL VISUAL
   ========================================================= */

.auth-visual {
    position: relative;
    display: grid;
    min-height: 500px;
    place-items: center;
    perspective: 1000px;
}

.portal-orbit {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.portal-orbit-outer {
    width: 430px;
    height: 430px;
    border: 1px solid rgba(91, 161, 255, 0.16);
    box-shadow:
        0 0 0 48px rgba(255, 255, 255, 0.014),
        0 0 0 96px rgba(255, 255, 255, 0.009);
    animation: portalOrbit 26s linear infinite;
}

.portal-orbit-outer::before,
.portal-orbit-outer::after {
    position: absolute;
    border-radius: 50%;
    content: "";
}

.portal-orbit-outer::before {
    top: 41px;
    right: 38px;
    width: 9px;
    height: 9px;
    background: var(--auth-blue-2);
    box-shadow: 0 0 17px rgba(86, 160, 255, 0.9);
}

.portal-orbit-outer::after {
    bottom: 59px;
    left: 29px;
    width: 7px;
    height: 7px;
    background: var(--auth-cyan);
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.8);
}

.portal-orbit-inner {
    width: 312px;
    height: 312px;
    border: 1px dashed rgba(45, 212, 191, 0.14);
    animation: portalOrbit 20s linear infinite reverse;
}

.portal-card {
    position: relative;
    z-index: 3;
    width: min(100%, 385px);
    min-height: 420px;
    padding: 28px;
    overflow: hidden;
    transform: rotateY(-4deg) rotateX(2deg);
    border: 1px solid rgba(255, 255, 255, 0.135);
    border-radius: 27px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.032)),
        rgba(7, 27, 47, 0.78);
    box-shadow:
        0 42px 90px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.11);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transition:
        transform 0.42s var(--auth-ease),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.portal-card:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-7px);
    border-color: rgba(45, 212, 191, 0.28);
    box-shadow:
        0 48px 100px rgba(0, 0, 0, 0.39),
        0 0 45px rgba(20, 108, 255, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.portal-card::before {
    position: absolute;
    top: -95px;
    right: -90px;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(20, 108, 255, 0.24), transparent 70%);
    content: "";
    pointer-events: none;
}

.portal-card::after {
    position: absolute;
    right: 25px;
    bottom: 0;
    left: 25px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, transparent, var(--auth-blue), var(--auth-cyan), transparent);
    content: "";
}

.portal-card-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.portal-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b7c9d9;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.portal-live > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--auth-cyan);
    box-shadow: 0 0 0 5px rgba(45, 212, 191, 0.09);
    animation: portalStatusPulse 2.2s ease-in-out infinite;
}

.portal-security {
    display: inline-flex;
    min-width: 37px;
    min-height: 29px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(86, 160, 255, 0.18);
    border-radius: 9px;
    background: rgba(20, 108, 255, 0.08);
    color: #79b7ff;
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: 0.61rem;
    font-weight: 800;
}

.portal-shield,
.portal-account-visual {
    position: relative;
    z-index: 2;
    display: grid;
    width: 150px;
    height: 154px;
    place-items: center;
    margin: 5px auto 27px;
}

.portal-shield::before,
.portal-account-visual::before {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(45, 212, 191, 0.17);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(45, 212, 191, 0.08), transparent 68%);
    box-shadow:
        0 0 0 15px rgba(255, 255, 255, 0.014),
        0 0 0 30px rgba(255, 255, 255, 0.008);
    content: "";
    animation: portalShieldPulse 4s ease-in-out infinite;
}

.portal-shield svg {
    position: relative;
    z-index: 2;
    width: 92px;
    fill: rgba(20, 108, 255, 0.12);
    stroke: #76b9ff;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 12px 25px rgba(20, 108, 255, 0.22));
}

.portal-account-visual svg {
    position: relative;
    z-index: 2;
    width: 88px;
    fill: none;
    stroke: #78bdff;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 12px 25px rgba(20, 108, 255, 0.2));
}

.portal-user-ring {
    position: absolute;
    inset: 6px;
    border: 1px dashed rgba(45, 212, 191, 0.2);
    border-radius: 50%;
    animation: portalOrbit 16s linear infinite;
}

.portal-progress {
    position: relative;
    z-index: 2;
    margin-bottom: 25px;
}

.portal-progress > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.portal-progress span {
    color: #8fa7bb;
    font-size: 0.72rem;
    font-weight: 650;
}

.portal-progress strong {
    color: #ffffff;
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: 0.78rem;
}

.portal-progress-track {
    display: block;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.075);
}

.portal-progress-track > span {
    position: relative;
    display: block;
    width: 92%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--auth-blue), var(--auth-cyan));
    box-shadow: 0 0 18px rgba(45, 212, 191, 0.29);
}

.portal-progress-track > span::after {
    position: absolute;
    inset: 0;
    transform: translateX(-115%);
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.66), transparent);
    content: "";
    animation: portalProgressShine 3.1s ease-in-out infinite;
}

.portal-metrics {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.portal-metrics article {
    min-width: 0;
    padding: 13px 8px;
    border: 1px solid rgba(255, 255, 255, 0.073);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    text-align: center;
}

.portal-metrics strong {
    display: block;
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 0.72rem;
    line-height: 1.25;
}

.portal-metrics span {
    display: block;
    color: #8098ac;
    font-size: 0.58rem;
    line-height: 1.4;
}

.portal-float {
    position: absolute;
    z-index: 5;
    display: grid;
    grid-template-columns: 33px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    min-width: 172px;
    padding: 12px 13px;
    border: 1px solid rgba(255, 255, 255, 0.115);
    border-radius: 14px;
    background: rgba(7, 25, 43, 0.88);
    box-shadow: 0 19px 48px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    animation: portalFloat 5s ease-in-out infinite;
}

.portal-float-one {
    top: 13%;
    right: -5%;
}

.portal-float-two {
    bottom: 12%;
    left: -6%;
    animation-delay: -2.3s;
}

.portal-float-dot,
.portal-float-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(45, 212, 191, 0.18);
    border-radius: 9px;
    background:
        linear-gradient(145deg, rgba(45, 212, 191, 0.11), rgba(20, 108, 255, 0.09));
    color: #6ce5d4;
    font-size: 0.65rem;
    font-weight: 850;
}

.portal-float-dot::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--auth-cyan);
    box-shadow: 0 0 0 5px rgba(45, 212, 191, 0.1);
    content: "";
}

.portal-float strong {
    display: block;
    color: #ffffff;
    font-size: 0.72rem;
    line-height: 1.35;
}

.portal-float small {
    display: block;
    margin-top: 2px;
    color: #849caf;
    font-size: 0.6rem;
    line-height: 1.35;
}

/* =========================================================
   AUTH PANEL / CARD
   ========================================================= */

.auth-panel {
    width: 100%;
    max-width: 555px;
    justify-self: end;
}

.auth-card {
    position: relative;
    overflow: hidden;
    padding: clamp(27px, 3.4vw, 43px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.985));
    box-shadow:
        0 42px 100px rgba(0, 0, 0, 0.33),
        inset 0 1px 0 #ffffff;
}

.auth-card::before {
    position: absolute;
    top: 0;
    right: 32px;
    left: 32px;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--auth-blue), var(--auth-cyan));
    content: "";
}

.auth-card::after {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(20, 108, 255, 0.075), transparent 68%);
    content: "";
    pointer-events: none;
}

.auth-card-signup {
    padding-top: 35px;
}

.auth-switcher {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 31px;
    padding: 5px;
    border: 1px solid #e0e8f1;
    border-radius: 13px;
    background: #f1f5f9;
}

.auth-switcher a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #718198;
    font-size: 0.79rem;
    font-weight: 750;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s var(--auth-ease),
        box-shadow 0.25s ease;
}

.auth-switcher a:hover {
    color: var(--auth-ink);
}

.auth-switcher a.active {
    background: #ffffff;
    color: var(--auth-blue);
    box-shadow:
        0 5px 14px rgba(15, 34, 58, 0.08),
        inset 0 0 0 1px rgba(20, 108, 255, 0.055);
}

.auth-card-heading {
    position: relative;
    z-index: 2;
    margin-bottom: 25px;
}

.auth-card-heading > span {
    display: block;
    margin-bottom: 7px;
    color: var(--auth-blue);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.auth-card-heading h2 {
    margin: 0 0 10px;
    color: var(--auth-ink);
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: clamp(1.7rem, 2.4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.045em;
}

.auth-card-heading p {
    max-width: 460px;
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.86rem;
    line-height: 1.7;
}

/* =========================================================
   ALERTS
   ========================================================= */

.auth-alert {
    position: relative;
    z-index: 2;
    display: none;
    margin-bottom: 19px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 0.77rem;
    font-weight: 700;
    line-height: 1.55;
}

.auth-alert.show {
    display: block;
    animation: authAlertReveal 0.3s ease both;
}

.auth-alert.success {
    border-color: rgba(24, 185, 130, 0.2);
    background: #e9faf5;
    color: #087b59;
}

.auth-alert.error {
    border-color: rgba(231, 75, 91, 0.18);
    background: #fff0f2;
    color: #b82739;
}

.auth-alert.info {
    border-color: rgba(20, 108, 255, 0.17);
    background: #edf5ff;
    color: #0754ce;
}

/* =========================================================
   FORM
   ========================================================= */

.auth-form {
    position: relative;
    z-index: 2;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.auth-field {
    min-width: 0;
    margin-bottom: 17px;
}

.auth-field label,
.auth-label-row label {
    display: block;
    color: var(--auth-ink);
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.4;
}

.auth-field label > span {
    margin-left: 4px;
    color: #9aa8b8;
    font-size: 0.64rem;
    font-weight: 650;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 7px;
}

.auth-field > label {
    margin-bottom: 7px;
}

.auth-text-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--auth-blue);
    font-size: 0.71rem;
    font-weight: 750;
    cursor: pointer;
    transition: color 0.2s ease;
}

.auth-text-button:hover {
    color: #0649b5;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    min-height: 54px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #d7e1ec;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: inset 0 1px 0 #ffffff;
    transition:
        border-color 0.24s ease,
        background 0.24s ease,
        box-shadow 0.24s ease,
        transform 0.24s var(--auth-ease);
}

.auth-input-wrap:hover {
    border-color: #becddd;
    background: #ffffff;
}

.auth-input-wrap:focus-within {
    transform: translateY(-1px);
    border-color: var(--auth-blue);
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(20, 108, 255, 0.09),
        0 8px 20px rgba(20, 108, 255, 0.055);
}

.auth-input-wrap.invalid {
    border-color: var(--auth-danger);
    box-shadow: 0 0 0 4px rgba(231, 75, 91, 0.075);
}

.auth-input-icon {
    display: grid;
    width: 51px;
    height: 52px;
    flex: 0 0 51px;
    place-items: center;
    color: #8294a7;
    transition: color 0.22s ease;
}

.auth-input-wrap:focus-within .auth-input-icon {
    color: var(--auth-blue);
}

.auth-input-icon svg,
.password-toggle svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-input-wrap input {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 13px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--auth-ink);
    font-size: 0.88rem;
    font-weight: 580;
}

.auth-input-wrap input::placeholder {
    color: #9aa8b8;
    font-weight: 500;
}

.auth-input-wrap input:-webkit-autofill,
.auth-input-wrap input:-webkit-autofill:hover,
.auth-input-wrap input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--auth-ink);
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    transition: background-color 9999s ease-in-out 0s;
}

.password-toggle {
    display: grid;
    width: 46px;
    height: 52px;
    flex: 0 0 46px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #7d8da0;
    cursor: pointer;
    transition:
        color 0.22s ease,
        background 0.22s ease;
}

.password-toggle:hover {
    background: rgba(20, 108, 255, 0.05);
    color: var(--auth-blue);
}

.password-toggle .eye-closed {
    display: none;
}

.password-toggle.is-visible .eye-open {
    display: none;
}

.password-toggle.is-visible .eye-closed {
    display: block;
}

.auth-field-error {
    display: none;
    margin-top: 6px;
    color: var(--auth-danger);
    font-size: 0.68rem;
    font-weight: 650;
    line-height: 1.45;
}

.auth-field-error.show {
    display: block;
}

/* =========================================================
   PASSWORD STRENGTH
   ========================================================= */

.password-strength {
    margin-top: 9px;
}

.password-strength-bars {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 6px;
}

.password-strength-bars span {
    height: 4px;
    border-radius: 999px;
    background: #dfe7ef;
    transition:
        background 0.24s ease,
        transform 0.24s var(--auth-ease);
}

.password-strength[data-score="1"] .password-strength-bars span:nth-child(-n + 1) {
    background: #e74b5b;
}

.password-strength[data-score="2"] .password-strength-bars span:nth-child(-n + 2) {
    background: #ef7a45;
}

.password-strength[data-score="3"] .password-strength-bars span:nth-child(-n + 3) {
    background: #f5a524;
}

.password-strength[data-score="4"] .password-strength-bars span:nth-child(-n + 4) {
    background: #3bbf91;
}

.password-strength[data-score="5"] .password-strength-bars span:nth-child(-n + 5) {
    background: var(--auth-success);
}

.password-strength small {
    display: block;
    color: #8595a7;
    font-size: 0.63rem;
    line-height: 1.45;
}

.password-strength strong {
    color: var(--auth-ink);
}

.password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.password-rules span {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 0 8px;
    border: 1px solid #e0e8f0;
    border-radius: 8px;
    background: #f7f9fb;
    color: #8a99aa;
    font-size: 0.58rem;
    font-weight: 700;
    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        color 0.22s ease;
}

.password-rules span.met {
    border-color: rgba(24, 185, 130, 0.18);
    background: #e9faf5;
    color: #087b59;
}

/* =========================================================
   FORM OPTIONS / CHECKBOX
   ========================================================= */

.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 2px 0 20px;
}

.auth-checkbox {
    position: relative;
    display: grid;
    grid-template-columns: 19px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    color: #6f7f92;
    font-size: 0.71rem;
    font-weight: 650;
    line-height: 1.55;
    cursor: pointer;
}

.auth-checkbox input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.auth-checkmark {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    margin-top: 1px;
    border: 1px solid #cbd7e3;
    border-radius: 5px;
    background: #ffffff;
    color: #ffffff;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s var(--auth-ease);
}

.auth-checkmark svg {
    width: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transform: scale(0.6);
    transition:
        opacity 0.2s ease,
        transform 0.2s var(--auth-ease);
}

.auth-checkbox input:checked + .auth-checkmark {
    border-color: var(--auth-blue);
    background: var(--auth-blue);
    box-shadow: 0 5px 13px rgba(20, 108, 255, 0.2);
}

.auth-checkbox input:checked + .auth-checkmark svg {
    opacity: 1;
    transform: scale(1);
}

.auth-checkbox input:focus-visible + .auth-checkmark {
    outline: 3px solid rgba(45, 212, 191, 0.5);
    outline-offset: 2px;
}

.auth-checkbox:hover .auth-checkmark {
    border-color: var(--auth-blue);
}

.auth-terms {
    margin: 2px 0 5px;
}

.auth-terms a,
.auth-legal a {
    color: var(--auth-blue);
    font-weight: 750;
}

.auth-terms a:hover,
.auth-legal a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-secure-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7b8c9e;
    font-size: 0.65rem;
    font-weight: 650;
    white-space: nowrap;
}

.auth-secure-note svg {
    width: 15px;
    fill: none;
    stroke: var(--auth-success);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   BUTTONS / LOWER CONTENT
   ========================================================= */

.auth-submit {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 55px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    margin-top: 16px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background:
        linear-gradient(135deg, #287cff, #0754d8);
    color: #ffffff;
    box-shadow:
        0 13px 28px rgba(20, 108, 255, 0.27),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    font-size: 0.87rem;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.26s var(--auth-ease),
        box-shadow 0.26s ease,
        filter 0.26s ease;
}

.auth-submit::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -90%;
    width: 55%;
    transform: skewX(-24deg);
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.31), transparent);
    content: "";
    transition: left 0.58s var(--auth-ease);
}

.auth-submit:hover {
    transform: translateY(-3px);
    box-shadow:
        0 18px 37px rgba(20, 108, 255, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.auth-submit:hover::before {
    left: 135%;
}

.auth-submit:active {
    transform: translateY(-1px);
}

.auth-submit:disabled {
    cursor: wait;
    filter: saturate(0.8);
    opacity: 0.86;
}

.auth-submit > svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s var(--auth-ease);
}

.auth-submit:hover > svg {
    transform: translateX(4px);
}

.auth-submit-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: authSpinner 0.7s linear infinite;
}

.auth-submit.loading .auth-submit-loader {
    display: block;
}

.auth-submit.loading .auth-submit-text,
.auth-submit.loading > svg {
    display: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 23px 0 15px;
    color: #8a99aa;
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    flex: 1;
    background: #dfe7ef;
    content: "";
}

.auth-secondary-action {
    display: flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #d6e1ec;
    border-radius: 11px;
    background: #ffffff;
    color: var(--auth-ink);
    font-size: 0.79rem;
    font-weight: 750;
    transition:
        transform 0.25s var(--auth-ease),
        border-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.auth-secondary-action svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s var(--auth-ease);
}

.auth-secondary-action:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 108, 255, 0.25);
    color: var(--auth-blue);
    box-shadow: 0 11px 25px rgba(13, 31, 54, 0.08);
}

.auth-secondary-action:hover svg {
    transform: translateX(3px);
}

.auth-legal {
    margin: 17px auto 0;
    color: #8a99aa;
    font-size: 0.63rem;
    line-height: 1.6;
    text-align: center;
}

.auth-support {
    display: flex;
    max-width: 440px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin: 17px auto 0;
    color: #9fb2c5;
    font-size: 0.68rem;
}

.auth-support-icon {
    display: grid;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #64e0cf;
}

.auth-support-icon svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-support > div {
    display: flex;
    flex-direction: column;
    line-height: 1.45;
}

.auth-support a {
    color: #ffffff;
    font-weight: 750;
}

.auth-support a:hover {
    color: var(--auth-cyan);
}

/* =========================================================
   FOOTER
   ========================================================= */

.auth-footer {
    position: relative;
    z-index: 5;
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 24px 22px;
    color: #71879c;
    font-size: 0.63rem;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.auth-footer-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #41607d;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes authOrbFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(25px, -18px, 0) scale(1.05);
    }
}

@keyframes authLineShine {
    0%,
    38% {
        transform: translateX(-110%);
    }

    72%,
    100% {
        transform: translateX(110%);
    }
}

@keyframes portalOrbit {
    to {
        transform: rotate(360deg);
    }
}

@keyframes portalStatusPulse {
    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.08);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(45, 212, 191, 0.015);
    }
}

@keyframes portalShieldPulse {
    0%,
    100% {
        transform: scale(0.94);
        opacity: 0.66;
    }

    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

@keyframes portalProgressShine {
    0%,
    38% {
        transform: translateX(-115%);
    }

    72%,
    100% {
        transform: translateX(115%);
    }
}

@keyframes portalFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes authAlertReveal {
    from {
        transform: translateY(-6px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes authSpinner {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1280px) {
    .auth-layout {
        grid-template-columns: minmax(0, 1fr) minmax(410px, 0.75fr);
        gap: 45px;
    }

    .auth-showcase {
        grid-template-columns: 1fr;
    }

    .auth-showcase-copy {
        max-width: 720px;
    }

    .auth-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .auth-benefits article {
        display: block;
        min-width: 0;
        padding: 15px;
    }

    .auth-benefit-icon {
        margin-bottom: 12px;
    }

    .auth-visual {
        min-height: 430px;
    }

    .portal-card {
        width: min(100%, 355px);
        min-height: 390px;
    }

    .portal-orbit-outer {
        width: 380px;
        height: 380px;
    }
}

@media (max-width: 1020px) {
    .auth-shell {
        padding-top: 18px;
    }

    .auth-layout {
        grid-template-columns: 1fr;
        width: min(100%, 760px);
    }

    .auth-showcase {
        display: block;
        text-align: center;
    }

    .auth-showcase-copy {
        margin-inline: auto;
    }

    .auth-showcase h1 {
        margin-inline: auto;
    }

    .auth-showcase-copy > p {
        margin-inline: auto;
    }

    .auth-eyebrow {
        justify-content: center;
    }

    .auth-benefits {
        max-width: 720px;
        margin-inline: auto;
        margin-top: 29px;
        text-align: left;
    }

    .auth-visual {
        display: none;
    }

    .auth-panel {
        max-width: 590px;
        justify-self: center;
        margin-top: 4px;
    }
}

@media (max-width: 700px) {
    .auth-topbar {
        width: min(calc(100% - 30px), 1440px);
        min-height: 76px;
    }

    .auth-brand-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 12px;
    }

    .auth-brand-copy strong {
        font-size: 1rem;
    }

    .auth-brand-copy small {
        font-size: 0.52rem;
    }

    .auth-home-link {
        width: 43px;
        min-height: 43px;
        justify-content: center;
        padding: 0;
        font-size: 0;
    }

    .auth-home-link svg {
        width: 20px;
    }

    .auth-shell {
        min-height: calc(100vh - 120px);
        padding: 20px 15px 35px;
    }

    .auth-layout {
        gap: 34px;
    }

    .auth-showcase h1 {
        font-size: clamp(2.35rem, 11vw, 3.45rem);
    }

    .auth-showcase-copy > p {
        font-size: 0.93rem;
    }

    .auth-benefits {
        grid-template-columns: 1fr;
        max-width: 530px;
    }

    .auth-benefits article {
        display: grid;
        grid-template-columns: 43px minmax(0, 1fr);
    }

    .auth-benefit-icon {
        margin: 0;
    }

    .auth-card {
        padding: 25px 20px;
        border-radius: 22px;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-card-heading h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 470px) {
    .auth-topbar {
        min-height: 69px;
    }

    .auth-brand-copy small {
        display: none;
    }

    .auth-shell {
        padding-top: 13px;
    }

    .auth-showcase h1 {
        font-size: 2.25rem;
    }

    .auth-showcase-copy > p {
        font-size: 0.88rem;
        line-height: 1.7;
    }

    .auth-benefits {
        display: none;
    }

    .auth-card {
        padding: 23px 16px;
        border-radius: 19px;
    }

    .auth-switcher {
        margin-bottom: 25px;
    }

    .auth-card-heading {
        margin-bottom: 21px;
    }

    .auth-card-heading h2 {
        font-size: 1.58rem;
    }

    .auth-card-heading p {
        font-size: 0.79rem;
    }

    .auth-input-wrap {
        min-height: 52px;
    }

    .auth-input-icon {
        width: 46px;
        flex-basis: 46px;
    }

    .auth-input-wrap input {
        font-size: 0.83rem;
    }

    .auth-form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
    }

    .auth-secure-note {
        padding-left: 1px;
    }

    .password-rules {
        gap: 5px;
    }

    .password-rules span {
        font-size: 0.54rem;
    }

    .auth-footer {
        flex-wrap: wrap;
        row-gap: 3px;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .auth-orb,
    .auth-eyebrow > span::after,
    .portal-orbit,
    .portal-live > span,
    .portal-shield::before,
    .portal-account-visual::before,
    .portal-user-ring,
    .portal-progress-track > span::after,
    .portal-float,
    .auth-submit-loader {
        animation: none;
    }

    .auth-brand,
    .auth-brand-mark,
    .auth-home-link,
    .auth-benefits article,
    .portal-card,
    .auth-input-wrap,
    .auth-submit,
    .auth-submit::before,
    .auth-secondary-action {
        transition: none;
    }
}
