body {
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(0, 255, 174, 0.14), transparent 30%),
        linear-gradient(135deg, #071216 0%, #0d1b22 30%, #132d35 100%);
}

#auth-panel {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    z-index: 1;
}

#auth-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 25%, rgba(0, 255, 174, 0.1), transparent 35%);
    pointer-events: none;
}

.auth-container {
    position: relative;
    z-index: 1;
    width: min(100%, 30rem);
    padding: clamp(1.6rem, 5vw, 2.45rem);
    background: linear-gradient(145deg, rgba(14, 27, 32, 0.96), rgba(21, 40, 45, 0.91));
    border: 1px solid rgba(150, 255, 220, 0.22);
    border-radius: 1.4rem;
    box-shadow:
        0 28px 75px rgba(0, 0, 0, 0.44),
        0 0 38px rgba(0, 255, 174, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
}

.auth-container.auth-sign-in-container {
    width: min(100%, 64rem);
    padding: clamp(1.35rem, 3vw, 2rem);
}

.auth-sign-in-heading {
    max-width: 42rem;
    margin: 0 auto 1.1rem;
    text-align: center;
}

.auth-sign-in-heading .auth-brandmark {
    width: 2.8rem;
    height: 2.8rem;
    margin: 0 auto 0.6rem;
}

.auth-sign-in-heading .auth-eyebrow,
.auth-sign-in-heading h1,
.auth-sign-in-heading .auth-subtitle {
    text-align: center;
}

.auth-sign-in-heading .auth-subtitle {
    margin: 0.4rem auto 0;
}

.auth-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1rem minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(1.3rem, 3vw, 2.3rem);
}

.auth-primary,
.auth-secondary {
    min-width: 0;
    align-self: center;
}

.auth-divider--vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    gap: 0.8rem;
    width: 1rem;
    margin: 0;
}

.auth-divider--vertical::before,
.auth-divider--vertical::after {
    width: 1px;
    height: auto;
    flex: 1 1 auto;
    background: linear-gradient(180deg, transparent, rgba(159, 255, 220, 0.32), transparent);
}

.auth-divider--vertical span {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.auth-secondary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.2rem, 3vw, 1.8rem);
    border: 1px solid rgba(159, 255, 220, 0.1);
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.auth-secondary-title {
    margin: 0;
    color: #f4fff9;
    font-size: 1.05rem;
    font-weight: 750;
}

.auth-secondary-copy {
    margin: 0.4rem 0 1.15rem;
    color: rgba(239, 255, 248, 0.64);
    font-size: 0.84rem;
    line-height: 1.5;
}

.auth-secondary .google-sign-in {
    align-items: center;
    min-height: 3rem;
    padding: 0;
}

.auth-account-links {
    margin-top: 1rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-account-links .footer-text {
    margin-top: 0.75rem;
    text-align: left;
}

.auth-brandmark {
    display: grid;
    width: 3.35rem;
    height: 3.35rem;
    place-items: center;
    margin: 0 auto 1rem;
    border: 1px solid rgba(106, 255, 207, 0.4);
    border-radius: 1.1rem;
    background: radial-gradient(circle at 35% 25%, rgba(126, 255, 214, 0.24), rgba(0, 255, 174, 0.07));
    box-shadow:
        0 0 26px rgba(0, 255, 174, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: #a3ffdc;
    font-size: 1.7rem;
    line-height: 1;
}

.auth-brandmark-symbol {
    display: block;
    width: 1.85rem;
    height: 1.85rem;
}

.auth-eyebrow {
    margin: 0 0 0.45rem;
    color: #90eac8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-align: center;
}

.auth-container h1,
.auth-container h2 {
    margin: 0;
    font-size: clamp(1.8rem, 5vw, 2.35rem);
    letter-spacing: -0.035em;
    text-align: center;
    line-height: 1.2;
}

.auth-subtitle {
    max-width: 24rem;
    margin: 0.65rem auto 1.5rem;
    color: rgba(239, 255, 248, 0.68);
    font-size: 0.92rem;
    line-height: 1.55;
    text-align: center;
}

.auth-progress {
    display: flex;
    gap: 0.55rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.auth-progress li {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    padding: 0.55rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(236, 249, 243, 0.47);
    font-size: 0.7rem;
    font-weight: 650;
    white-space: nowrap;
}

.auth-progress li > span:first-child {
    display: flex;
    flex: 0 0 1.35rem;
    width: 1.35rem;
    height: 1.35rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    font-size: 0.62rem;
    line-height: 1;
    box-sizing: border-box;
}

.auth-progress li.is-current,
.auth-progress li.is-complete {
    border-color: rgba(0, 255, 174, 0.3);
    background: rgba(0, 255, 174, 0.07);
    color: #cffff0;
}

.auth-progress li.is-current > span:first-child,
.auth-progress li.is-complete > span:first-child {
    border-color: rgba(0, 255, 174, 0.55);
    background: rgba(0, 255, 174, 0.14);
    color: #9fffd9;
}

.green-title {
    color: #00ffae;
}

.basic-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 0.35rem;
    min-width: 0;
}

.form-group.full-width,
#update-message {
    width: 100%;
}

.auth-card-stack {
    position: relative;
    overflow: hidden;
}

.auth-step {
    display: none;
    opacity: 0;
    transform: translateX(16px);
    transition:
        opacity 0.28s ease,
        transform 0.28s ease;
    min-height: 260px;
}

.auth-step.is-active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.step-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.8rem;
}

.step-actions > * {
    flex: 1;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.86rem;
}

.form-group label::after {
    content: attr(data-required);
    color: #ff6b7a;
    margin-left: 0.32rem;
    font-weight: 800;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(159, 255, 220, 0.24);
    border-radius: var(--geo-radius, 12px);
    background: rgba(5, 14, 18, 0.72);
    color: var(--geo-text, #f4fff9);
    outline: none;
    caret-color: white;
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
    font: inherit;
    min-height: 3.1rem;
}

.form-group input:focus,
.form-group input:-webkit-autofill:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(0, 255, 174, 0.7);
    background-color: rgba(8, 22, 25, 0.92) !important;
    box-shadow:
        0 0 0 3px rgba(0, 255, 174, 0.12),
        0 0 0 1000px rgba(8, 22, 25, 0.92) inset !important;
}

.form-group textarea {
    resize: vertical;
    min-height: 72px;
}

@media (max-width: 620px) {
    .basic-form {
        display: flex;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .profile-setup-actions {
        flex-direction: column;
    }
}

.form-group .input-feedback,
.form-group small,
.password-strength-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    line-height: 1.4;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px rgba(12, 24, 30, 0.95) inset !important;
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
}

.auth-button {
    width: 100%;
    min-height: 46px;
    padding: 0.7rem 1rem;
    margin-top: 0.15rem;
    background: linear-gradient(135deg, #00ffae, #00c78a);
    border: none;
    border-radius: 12px;
    color: #062b1d;
    font-weight: 800;
    font-size: 0.96rem;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(0, 255, 174, 0.18);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.auth-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(0, 255, 174, 0.24);
    filter: brightness(1.03);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.15rem 0 0.9rem;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(159, 255, 220, 0.28));
}

.auth-divider::after {
    background: linear-gradient(90deg, rgba(159, 255, 220, 0.28), transparent);
}

.google-sign-in {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 0.15rem 0;
}

.google-sign-in > div {
    max-width: 100%;
}

.footer-text {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-text a {
    color: #00ffae;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.2s ease;
}

.footer-text a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: 0;
    left: 0;
    background-color: #00ffae;
    transition: width 0.2s ease;
}

.footer-text a:hover {
    color: #66ffd0;
}

.footer-text a:hover::after {
    width: 100%;
}

.profile-setup-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 8, 12, 0.7);
    z-index: 20;
    padding: 1rem;
}

.profile-setup-modal.hidden {
    display: none;
}

.profile-setup-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: left;
}

.profile-setup-form label {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.profile-setup-form select,
.profile-setup-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(159, 255, 220, 0.24);
    background: rgba(5, 14, 18, 0.72);
    color: #f4fff9;
    font: inherit;
}

.profile-setup-form select,
.profile-setup-form textarea {
    border: 1px solid rgba(159, 255, 220, 0.24);
    border-radius: var(--geo-radius, 12px);
    background: rgba(5, 14, 18, 0.72);
    color: var(--geo-text, #f4fff9);
    font: inherit;
}

.profile-setup-form select {
    min-height: 3.1rem;
    padding: 0.75rem 0.9rem;
}

.profile-setup-form textarea {
    resize: vertical;
    min-height: 90px;
}

.secondary-button {
    flex: 1;
    min-height: 46px;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(150, 255, 220, 0.2);
    background: transparent;
    color: #fff;
    font-size: 0.92rem;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.secondary-button:hover {
    border-color: rgba(150, 255, 220, 0.46);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

#update-message {
    display: none !important;
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    z-index: 1000;
}

.password-strength {
    height: 6px;
    width: 100%;
    background-color: #333;
    border-radius: 4px;
    margin-top: 4px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition:
        width 0.3s ease,
        background-color 0.3s ease;
}

.password-strength-text {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.85rem;
    color: #ccc;
    font-weight: bold;
}

.bottom-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 820px) {
    .auth-container.auth-sign-in-container {
        width: min(100%, 30rem);
    }

    .auth-content-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .auth-divider--vertical {
        flex-direction: row;
        width: 100%;
        min-height: 1rem;
    }

    .auth-divider--vertical::before,
    .auth-divider--vertical::after {
        width: auto;
        height: 1px;
        flex: 1 1 auto;
        background: linear-gradient(90deg, transparent, rgba(159, 255, 220, 0.32), transparent);
    }

    .auth-secondary {
        padding: 0.4rem 0 0;
        border: 0;
        background: none;
    }

    .auth-secondary-title,
    .auth-secondary-copy {
        text-align: center;
    }

    .auth-account-links .footer-text {
        text-align: center;
    }

    .auth-account-links .forgot-password-link {
        display: inline-flex;
        min-height: 2.6rem;
        align-items: center;
        padding: 0 0.85rem;
        border: 1px solid rgba(150, 255, 220, 0.2);
        border-radius: 0.8rem;
        background: rgba(255, 255, 255, 0.035);
    }
}

.auth-fixed-waves {
    position: fixed;
    inset: auto 0 0;
    height: 0;
    margin: 0;
    z-index: 0;
    pointer-events: none;
}

.auth-fixed-waves .bottom-waves {
    position: absolute;
    bottom: 0;
    z-index: 0;
    transform: none;
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1.4rem 1.1rem;
        border-radius: 1.1rem;
    }

    .auth-progress {
        gap: 0.35rem;
    }

    .auth-progress li {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.45rem 0.25rem;
        font-size: 0.65rem;
    }

    .auth-container.auth-forgot-password-container {
        width: min(100%, 25rem);
        padding: 1.8rem 1.2rem;
        border-radius: 1.25rem;
    }

    .auth-forgot-password-container h2 {
        font-size: clamp(1.65rem, 8vw, 2rem);
    }

    .auth-forgot-password-container .auth-subtitle {
        margin: 0.7rem auto 1.35rem;
        font-size: 0.88rem;
    }

    .auth-forgot-password-container .basic-form {
        gap: 1.1rem;
    }

    .auth-forgot-password-container .auth-button {
        min-height: 3.15rem;
    }

    .auth-forgot-password-container .footer-text {
        margin: 1.15rem 0 0;
    }

    .auth-forgot-password-container .footer-text a {
        display: inline-flex;
        min-height: 2.75rem;
        align-items: center;
        justify-content: center;
        padding: 0 1rem;
        border: 1px solid rgba(150, 255, 220, 0.2);
        border-radius: 0.8rem;
        background: rgba(255, 255, 255, 0.035);
    }
}
.country-loading-field {
    position: relative;
}

.country-loading-skeleton {
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    pointer-events: none;
}

.country-loading-skeleton[hidden] {
    display: none;
}
