:root {
    --auth-card: rgba(13, 13, 16, 0.94);
    --auth-border: color-mix(
        in srgb,
        var(--beam-color) 36%,
        rgba(255, 255, 255, 0.08)
    );
    --auth-muted: #a1a1aa;
    --auth-error: #ff6b6b;
    --auth-success: #35d07f;
}

.auth-page,
.profile-page {
    position: relative;
    z-index: 1;
    width: min(100% - 30px, 1180px);
    margin-inline: auto;
}

.auth-page {
    display: grid;
    place-items: center;
    min-height: 660px;
    padding: 70px 0 90px;
}

.auth-page::before,
.profile-page::before {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 80px 0 auto;
    width: min(760px, 90vw);
    height: 520px;
    margin-inline: auto;
    border-radius: 50%;
    background: color-mix(
        in srgb,
        var(--beam-color) 13%,
        transparent
    );
    filter: blur(130px);
    pointer-events: none;
}

.auth-page--compact {
    min-height: 540px;
}

.auth-card,
.profile-card,
.profile-hero,
.profile-summary {
    border: 1px solid var(--auth-border);
    background:
        radial-gradient(
            circle at 100% 0,
            color-mix(in srgb, var(--beam-color) 10%, transparent),
            transparent 38%
        ),
        var(--auth-card);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.42),
        0 0 32px color-mix(
            in srgb,
            var(--beam-color) 7%,
            transparent
        );
}

.auth-card {
    width: min(100%, 520px);
    padding: 38px;
    border-radius: 28px;
}

.auth-card__heading {
    margin-bottom: 26px;
}

.auth-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--beam-color);
    font-size: 13px;
    font-weight: 900;
}

.auth-card h1,
.profile-hero h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.25;
}

.auth-intro,
.profile-hero p,
.profile-card__heading p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.9;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-form label {
    margin-top: 6px;
    color: #f4f4f5;
    font-size: 14px;
    font-weight: 800;
}

.auth-form label small {
    color: var(--auth-muted);
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    min-height: 50px;
    padding: 11px 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    outline: none;
    font-size: 15px;
    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.auth-form input:focus {
    border-color: color-mix(
        in srgb,
        var(--beam-color) 70%,
        transparent
    );
    background: color-mix(
        in srgb,
        var(--beam-color) 7%,
        rgba(255, 255, 255, 0.035)
    );
    box-shadow: 0 0 0 4px color-mix(
        in srgb,
        var(--beam-color) 12%,
        transparent
    );
}

.auth-form button {
    min-height: 52px;
    margin-top: 16px;
    padding: 11px 18px;
    color: #09090b;
    background: var(--beam-color);
    border: 0;
    border-radius: 13px;
    box-shadow: 0 12px 30px color-mix(
        in srgb,
        var(--beam-color) 18%,
        transparent
    );
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px color-mix(
        in srgb,
        var(--beam-color) 27%,
        transparent
    );
}

.auth-hint {
    color: var(--auth-muted);
    font-size: 12px;
}

.auth-message {
    width: min(100%, 1180px);
    margin: 0 auto 20px;
    padding: 13px 16px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

.auth-card .auth-message {
    width: 100%;
}

.auth-message--error {
    color: #ffd5d5;
    background: rgba(180, 35, 24, 0.16);
    border-color: rgba(255, 107, 107, 0.28);
}

.auth-message--success {
    color: #d9ffea;
    background: rgba(53, 208, 127, 0.13);
    border-color: rgba(53, 208, 127, 0.28);
}

.auth-switch {
    margin: 24px 0 0;
    color: var(--auth-muted);
    text-align: center;
    font-size: 14px;
}

.auth-switch a {
    color: var(--beam-color);
    font-weight: 900;
    text-decoration: none;
}

.auth-forgot-link {
    align-self: flex-start;
    margin-top: 2px;
    color: var(--beam-color);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.auth-result-card {
    padding: 24px;
    text-align: center;
    background: rgba(53, 208, 127, 0.08);
    border: 1px solid rgba(53, 208, 127, 0.25);
    border-radius: 18px;
}

.auth-result-card > span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    color: #09090b;
    font-size: 23px;
    font-weight: 900;
    background: var(--auth-success);
    border-radius: 15px;
}

.auth-result-card h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 22px;
}

.auth-result-card p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.9;
}

.auth-result-card small {
    display: block;
    margin-top: 12px;
    color: var(--beam-color);
    line-height: 1.7;
}

.auth-result-card a {
    display: inline-grid;
    place-items: center;
    min-height: 43px;
    margin-top: 18px;
    padding: 0 18px;
    color: #09090b;
    font-weight: 900;
    text-decoration: none;
    background: var(--beam-color);
    border-radius: 12px;
}

.auth-result-card--error {
    background: rgba(255, 107, 107, 0.08);
    border-color: rgba(255, 107, 107, 0.25);
}

.auth-result-card--error > span {
    color: #fff;
    background: var(--auth-error);
}

.profile-page {
    padding: 42px 0 76px;
}

.profile-hero {
    position: relative;
    display: grid;
    grid-template-columns:
        minmax(260px, 0.8fr)
        minmax(520px, 1.4fr);
    align-items: center;
    gap: 22px;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 24px 26px;
    border-radius: 24px;
}

.profile-hero::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        color-mix(in srgb, var(--beam-color) 78%, transparent),
        transparent
    );
}

.profile-hero__identity {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.profile-hero__copy {
    min-width: 0;
}

.profile-hero__copy .auth-kicker {
    margin-bottom: 5px;
}

.profile-hero__copy h1 {
    overflow: hidden;
    margin-bottom: 5px;
    font-size: clamp(24px, 3vw, 32px);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-hero__copy p {
    font-size: 12px;
    line-height: 1.7;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    border: 1px solid color-mix(
        in srgb,
        var(--beam-color) 58%,
        transparent
    );
    border-radius: 20px;
    color: #09090b;
    background:
        linear-gradient(
            145deg,
            color-mix(in srgb, var(--beam-color) 82%, #fff),
            var(--beam-color)
        );
    box-shadow: 0 14px 34px color-mix(
        in srgb,
        var(--beam-color) 16%,
        transparent
    );
    font-size: 28px;
    font-weight: 900;
}

.profile-hero__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.profile-stat {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 66px;
    padding: 11px 12px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.028);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.profile-stat::before {
    content: "";
    position: absolute;
    inset: 10px auto 10px 0;
    width: 2px;
    border-radius: 999px;
    background: color-mix(
        in srgb,
        var(--beam-color) 65%,
        transparent
    );
}

.profile-stat--active::before,
.profile-stat--verified::before {
    background: #35d07f;
}

.profile-stat--pending::before {
    background: #f59e0b;
}

.profile-stat span {
    overflow: hidden;
    color: var(--auth-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-stat strong {
    overflow: hidden;
    color: #fff;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-stat--active strong,
.profile-stat--verified strong {
    color: #a7f3d0;
}

.profile-stat--pending strong {
    color: #fbbf24;
}

.profile-section-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.profile-section-heading__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    color: var(--beam-color);
    background: color-mix(
        in srgb,
        var(--beam-color) 10%,
        rgba(255, 255, 255, 0.025)
    );
    border: 1px solid color-mix(
        in srgb,
        var(--beam-color) 34%,
        rgba(255, 255, 255, 0.08)
    );
    border-radius: 14px;
    font-family: Arial, sans-serif;
    font-size: 25px;
    line-height: 1;
}

.profile-section-heading .auth-kicker {
    margin-bottom: 3px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.profile-verification-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 24px;
    padding: 20px 24px;
    color: #f4f4f5;
    background: rgba(245, 158, 11, 0.09);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 20px;
}

.profile-verification-card > div {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-verification-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    color: #09090b;
    font-size: 21px;
    font-weight: 900;
    background: #f59e0b;
    border-radius: 13px;
}

.profile-verification-card h2 {
    margin: 0 0 5px;
    font-size: 18px;
}

.profile-verification-card p {
    margin: 0;
    color: #d4d4d8;
    font-size: 12px;
}

.profile-verification-card form {
    margin: 0;
}

.profile-verification-card button {
    min-height: 42px;
    padding: 0 16px;
    color: #09090b;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    background: #f59e0b;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
}

.profile-card {
    --profile-card-accent: var(--beam-color);

    position: relative;
    overflow: hidden;
    padding: 22px 24px 24px;
    border-color: color-mix(
        in srgb,
        var(--profile-card-accent) 30%,
        rgba(255, 255, 255, 0.08)
    );
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 100% 0,
            color-mix(
                in srgb,
                var(--profile-card-accent) 10%,
                transparent
            ),
            transparent 38%
        ),
        var(--auth-card);
}

.profile-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        color-mix(
            in srgb,
            var(--profile-card-accent) 76%,
            transparent
        ),
        transparent
    );
}

.profile-card--security {
    --profile-card-accent: #60a5fa;
}

.profile-card__heading {
    position: relative;
    margin-bottom: 16px;
    padding-inline-start: 14px;
}

.profile-card__heading::before {
    content: "";
    position: absolute;
    inset: 4px 0 4px auto;
    width: 3px;
    border-radius: 999px;
    background: var(--profile-card-accent);
}

.profile-card__heading h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 19px;
}

.profile-card__heading p {
    font-size: 12px;
    line-height: 1.7;
}

.profile-page .auth-form {
    gap: 7px;
}

.profile-page .auth-form label {
    margin-top: 4px;
    font-size: 12px;
}

.profile-page .auth-form label small {
    display: inline;
    font-size: 10px;
}

.profile-page .auth-form input {
    min-height: 46px;
    padding-block: 9px;
    font-size: 13px;
    border-radius: 11px;
}

.profile-page .auth-form button {
    min-height: 47px;
    margin-top: 12px;
    border-radius: 11px;
    font-size: 13px;
}

.profile-card--security .auth-form input:focus {
    border-color: color-mix(
        in srgb,
        #60a5fa 72%,
        transparent
    );
    background: color-mix(
        in srgb,
        #60a5fa 6%,
        rgba(255, 255, 255, 0.035)
    );
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.11);
}

.profile-card--security .auth-form button {
    color: #07111f;
    background: #60a5fa;
    box-shadow: 0 12px 30px rgba(96, 165, 250, 0.15);
}

@media (max-width: 768px) {
    .auth-page {
        min-height: 560px;
        padding: 38px 0 60px;
    }

    .auth-card {
        padding: 26px 20px;
        border-radius: 22px;
    }

    .profile-page {
        width: min(100% - 24px, 1180px);
        padding: 26px 0 54px;
    }

    .profile-hero {
        grid-template-columns: 1fr;
        gap: 17px;
        padding: 20px 16px;
        border-radius: 20px;
    }

    .profile-avatar {
        width: 58px;
        height: 58px;
        border-radius: 17px;
        font-size: 24px;
    }

    .profile-hero__identity {
        gap: 12px;
    }

    .profile-hero__copy h1 {
        font-size: 23px;
        white-space: normal;
    }

    .profile-hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .profile-stat {
        min-height: 58px;
        padding: 9px 10px;
        border-radius: 12px;
    }

    .profile-stat span {
        font-size: 9px;
    }

    .profile-stat strong {
        font-size: 11px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 14px;
    }

    .profile-verification-card {
        align-items: stretch;
        flex-direction: column;
        margin-bottom: 14px;
        padding: 16px;
        border-radius: 17px;
    }

    .profile-verification-card button {
        width: 100%;
    }

    .profile-card {
        padding: 19px 16px 20px;
        border-radius: 18px;
    }

    .profile-card__heading {
        margin-bottom: 13px;
    }

    .profile-section-heading {
        align-items: flex-start;
    }

    .profile-section-heading__icon {
        width: 39px;
        height: 39px;
        border-radius: 12px;
        font-size: 22px;
    }
}

@media (min-width: 769px) and (max-width: 1040px) {
    .profile-hero {
        grid-template-columns: 1fr;
    }
}