:root {
    --green: #20CB78;
    --green-deep: #1aad6a;
    --purple: #6C5CE7;
    --ink: #161B2B;
    --muted: #667085;
    --line: #E5E7EB;
    --page: #F7F8FC;
}

* { box-sizing: border-box; }

html,
body,
button,
input,
select,
a {
    font-family: 'Figtree', sans-serif;
}

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    color: var(--ink);
    background: var(--page);
    -webkit-font-smoothing: antialiased;
}

.page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background: var(--page);
}

.bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

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

.orb-left {
    left: -28%;
    top: 50%;
    width: min(920px, 78vw);
    height: min(920px, 78vw);
    transform: translateY(-52%);
    background:
        radial-gradient(circle at 55% 45%,
            rgba(167, 139, 250, 0.5) 0%,
            rgba(196, 181, 253, 0.36) 28%,
            rgba(237, 231, 255, 0.22) 52%,
            rgba(247, 248, 252, 0) 72%);
}

.orb-top-right {
    right: -16%;
    top: -18%;
    width: min(640px, 58vw);
    height: min(640px, 58vw);
    background:
        radial-gradient(circle at 40% 55%,
            rgba(110, 231, 183, 0.48) 0%,
            rgba(167, 243, 208, 0.34) 32%,
            rgba(230, 249, 240, 0.2) 55%,
            rgba(247, 248, 252, 0) 72%);
}

.orb-bottom-right {
    right: -22%;
    bottom: -26%;
    width: min(780px, 68vw);
    height: min(780px, 68vw);
    background:
        radial-gradient(circle at 42% 40%,
            rgba(167, 139, 250, 0.42) 0%,
            rgba(196, 181, 253, 0.28) 30%,
            rgba(237, 231, 255, 0.16) 55%,
            rgba(247, 248, 252, 0) 72%);
}

.orbits {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.55;
}

.ring {
    fill: none;
    stroke-width: 1.1;
}

.ring-left { stroke: rgba(167, 139, 250, 0.35); }
.ring-right { stroke: rgba(110, 231, 183, 0.35); }

.dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7);
}

.dot-a { top: 16%; left: 14%; background: var(--purple); animation: floatDot 5.5s ease-in-out infinite; }
.dot-b { top: 28%; left: 24%; width: 11px; height: 11px; background: var(--green); animation: floatDot 6.2s ease-in-out infinite 0.5s; }
.dot-c { top: 14%; right: 18%; background: var(--green); animation: floatDot 5.8s ease-in-out infinite 0.9s; }
.dot-d { top: 34%; right: 12%; width: 12px; height: 12px; background: var(--purple); animation: floatDot 6.8s ease-in-out infinite 0.2s; }
.dot-e { bottom: 22%; left: 16%; background: var(--green); animation: floatDot 6s ease-in-out infinite 1.1s; }
.dot-f { bottom: 18%; right: 18%; background: var(--purple); animation: floatDot 7s ease-in-out infinite 0.7s; }

.float-card {
    position: absolute;
    z-index: 1;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 18px 40px rgba(22, 27, 43, 0.1),
        0 4px 12px rgba(22, 27, 43, 0.04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    pointer-events: none;
    animation: floatCard 7s ease-in-out infinite;
}

.float-card svg {
    width: 34px;
    height: 34px;
}

.float-cap {
    top: 12%;
    left: max(36px, 8vw);
    background: linear-gradient(160deg, rgba(237, 231, 255, 0.92), rgba(255, 255, 255, 0.78));
    color: var(--purple);
}

.float-book {
    top: 18%;
    right: max(40px, 9vw);
    background: linear-gradient(160deg, rgba(220, 252, 231, 0.92), rgba(255, 255, 255, 0.78));
    color: var(--green-deep);
    animation-delay: 0.8s;
}

.float-chart {
    bottom: 16%;
    left: max(48px, 10vw);
    background: linear-gradient(160deg, rgba(220, 252, 231, 0.9), rgba(255, 255, 255, 0.78));
    color: var(--green-deep);
    animation-delay: 1.2s;
}

.float-people {
    bottom: 14%;
    right: max(44px, 9vw);
    background: linear-gradient(160deg, rgba(237, 231, 255, 0.9), rgba(255, 255, 255, 0.78));
    color: var(--purple);
    animation-delay: 0.4s;
}

.back {
    position: absolute;
    top: 18px;
    left: 16px;
    z-index: 3;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #6B7280;
    text-decoration: none;
    border-radius: 14px;
    transition: color 0.15s ease, background 0.15s ease;
}

.back:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.7);
}

.back svg {
    display: block;
}

.wrap {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 72px 20px 48px;
}

.brand-logo {
    display: block;
    width: min(166px, 52vw);
    height: auto;
}

h1 {
    margin: 24px 0 0;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--ink);
}

.lead {
    max-width: 440px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

.card {
    width: min(460px, 100%);
    margin-top: 26px;
    padding: 24px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    background: #fff;
    box-shadow:
        0 16px 40px rgba(22, 27, 43, 0.06),
        0 2px 8px rgba(22, 27, 43, 0.03);
}

.field {
    position: relative;
    display: block;
    margin-top: 14px;
}

.field:first-of-type {
    margin-top: 0;
}

.card > .field + .field,
.card > label + label {
    margin-top: 14px;
}

.card > label {
    display: block;
}

.field:not(:has(.field-icon)) input,
.card > label > input {
    padding-left: 16px;
}

.field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    color: #9CA3AF;
    transform: translateY(-50%);
    pointer-events: none;
}

.field-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.field-icon-green {
    color: #20CB78;
}

.field-icon-purple {
    color: #6C5CE7;
}

select,
input {
    width: 100%;
    height: 56px;
    margin-top: 0;
    padding: 0 16px 0 52px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #F9FAFB;
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.card select.select2-hidden-accessible {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    background: transparent !important;
}
.field:not(:has(.field-icon)) input {
    padding-left: 16px;
}

select {
    color: var(--muted);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 42px;
}

select.has-value,
input {
    color: var(--ink);
}

select:focus,
input:focus {
    outline: none;
    border-color: #A7F3D0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(32, 203, 120, 0.15);
}

.solid,
.outline {
    width: 100%;
    height: 56px;
    margin-top: 14px;
    border-radius: 14px;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    background: linear-gradient(135deg, #34D399 0%, #20CB78 50%, #16A34A 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(32, 203, 120, 0.28);
}

.solid svg {
    width: 20px;
    height: 20px;
    flex: none;
}

.solid:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(32, 203, 120, 0.34);
    filter: brightness(1.02);
}

.outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}

.outline svg {
    width: 24px;
    height: 24px;
    color: var(--purple);
    flex: none;
}

.outline:hover {
    border-color: #D1D5DB;
    background: #FAFAFB;
}

.or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 2px;
    color: #98A2B3;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.or::before,
.or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #EEE;
}

.note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 0;
    color: #16A34A;
    font-size: 15px;
    font-weight: 600;
}

.note svg {
    color: #20CB78;
    flex: none;
}

.flash {
    width: min(460px, 100%);
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #F0FDF4;
    color: #166534;
    font-size: 14px;
}

.error {
    margin: 6px 0 0;
    color: #DC2626;
    font-size: 14px;
}

.missing {
    width: min(460px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding: 18px 20px;
    border: 1.5px dashed #D1D5DB;
    border-radius: 18px;
    background: #fff;
    text-align: left;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.missing:hover {
    border-color: #9CA3AF;
    box-shadow: 0 8px 20px rgba(22, 27, 43, 0.04);
}

.missing-icon {
    display: grid;
    place-items: center;
    color: var(--purple);
    flex: none;
}

.missing-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.missing-copy span {
    color: var(--muted);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
}

.missing-copy strong {
    color: var(--green);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.forgot-row {
    margin: 0 0 4px;
    text-align: right;
}

.forgot-link {
    color: var(--purple);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.signin {
    margin-top: 22px;
    color: #98A2B3;
    font-size: 15px;
    text-align: center;
}

.signin a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s ease;
}

.signin a:hover {
    color: var(--purple);
}

.card .field {
    z-index: 1;
}

.card .select2-container {
    width: 100% !important;
    z-index: 1;
}

/* Keep selection under the field icon; dropdown is portaled to body */
.card .select2-container--open {
    z-index: 1;
}

.card .select2-container--default .select2-selection--single {
    height: 56px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #F9FAFB;
}

.card .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 52px;
    padding-right: 40px;
    font-size: 16px;
    line-height: 54px;
}

.card .select2-container--default .select2-selection--single .select2-selection__arrow {
    right: 12px;
    height: 54px;
    width: 24px;
}

.card .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6B7280 transparent transparent transparent;
    border-width: 7px 6px 0 6px;
    margin-left: -6px;
    margin-top: -2px;
}

.card .select2-container--default.select2-container--focus .select2-selection--single,
.card .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #A7F3D0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(32, 203, 120, 0.15);
    background: #fff;
}

@media (max-width: 1100px) {
    .float-card {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }

    .float-card svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 900px) {
    .float-card {
        display: none;
    }
}

@media (max-width: 767px) {
    .dot {
        display: none;
    }

    .back {
        top: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
    }

    .wrap {
        justify-content: flex-start;
        padding: 48px 16px 28px;
    }

    .brand-logo {
        width: min(166px, 52vw);
    }

    h1 {
        margin-top: 10px;
        font-size: 26px;
    }

    .lead {
        font-size: 15px;
        margin-top: 6px;
        line-height: 1.4;
    }

    .card {
        margin-top: 14px;
        padding: 16px;
        border-radius: 18px;
    }

    .field {
        margin-top: 12px;
    }

    .solid,
    .outline {
        margin-top: 12px;
    }

    .or {
        margin: 14px 0 2px;
    }

    .note {
        margin-top: 12px;
    }

    .missing {
        margin-top: 12px;
        padding: 14px;
        border-radius: 14px;
    }

    .missing-copy span,
    .missing-copy strong {
        font-size: 15px;
    }

    .signin {
        margin-top: 16px;
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .wrap {
        padding: 44px 14px 24px;
    }

    .brand-logo {
        width: min(166px, 52vw);
    }

    h1 {
        margin-top: 8px;
        font-size: 24px;
    }

    .lead {
        margin-top: 4px;
    }

    .card {
        margin-top: 12px;
        padding: 14px;
    }

    .solid,
    .outline {
        font-size: 16px;
        height: 54px;
    }

    select,
    input {
        height: 54px;
        font-size: 16px;
    }

    .card .select2-container--default .select2-selection--single {
        height: 54px;
    }

    .card .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 52px;
    }

    .card .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 52px;
    }
}

@keyframes floatDot {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
    .dot,
    .float-card {
        animation: none !important;
    }

    .solid:hover,
    .outline:hover {
        transform: none;
    }
}
