body.aiglasses-auth {
    --auth-blue: #1677ff;
    --auth-text: #0f172a;
    margin: 0;
    color: var(--auth-text);
    background: #edf5ff;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.aiglasses-auth__screen {
    --gutter: clamp(16px, 6vw, 24px);
    --hero-space: clamp(152px, 44vw, 214px);
    --hero-offset: clamp(118px, 37vw, 178px);
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    padding: max(clamp(32px, 8svh, 76px), env(safe-area-inset-top)) var(--gutter)
        max(112px, env(safe-area-inset-bottom));
    background: radial-gradient(ellipse at 92% 16%, #e2effe, transparent 46%),
        linear-gradient(180deg, #f7faff, #fff 60%, #edf6ff);
}

.aiglasses-auth__screen::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto 0 0;
    height: clamp(90px, 25vw, 118px);
    background: url("./1.jpg") center bottom / 100% auto no-repeat;
    mask-image: linear-gradient(180deg, transparent, #000 75%);
}

.aiglasses-auth--register .aiglasses-auth__screen {
    --hero-space: clamp(125px, 34vw, 174px);
    --hero-offset: clamp(132px, 41vw, 195px);
}

.aiglasses-auth__intro {
    position: relative;
    padding-bottom: var(--hero-space);
    text-align: center;
}

.aiglasses-auth__intro::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -50px calc(-1 * var(--gutter)) 0;
    background: url("./1.jpg") right calc(100% + var(--hero-offset)) / 115% auto no-repeat;
    mask-image: linear-gradient(180deg, transparent, #000 57%, #000 84%, transparent);
}

.aiglasses-auth__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: clamp(23px, 6vw, 28px);
    font-weight: 700;
    letter-spacing: -.04em;
}

.aiglasses-auth__intro h1 {
    margin: 0 0 8px;
    font-size: clamp(32px, 8.3vw, 40px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.04em;
}

.aiglasses-auth__subtitle {
    margin: 0;
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.4;
    font-weight: 500;
}

.aiglasses-auth__panel form {
    display: grid;
    gap: 16px;
}

.aiglasses-auth__control {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid #e2e8f5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 3px 8px rgba(22, 119, 255, .08);
}

.aiglasses-auth__control:focus-within {
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 2px rgba(22, 119, 255, .16);
}

.aiglasses-auth__control .jiqi-glyph {
    flex: none;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--auth-blue);
}

.aiglasses-auth__phone-prefix {
    display: flex;
    flex: none;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.aiglasses-auth__phone-prefix span {
    padding-right: 10px;
    border-right: 1px solid #94a3b8;
}

.aiglasses-auth__control input {
    width: 100%;
    min-width: 0;
    padding: 12px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--auth-text);
    font: inherit;
    font-size: 16px;
}

.aiglasses-auth__control input::placeholder {
    color: #526581;
    opacity: 1;
}

.aiglasses-auth__control input[autocomplete$="password"]::placeholder {
    color: var(--auth-text);
}

.aiglasses-auth__password-toggle {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.aiglasses-auth__password-toggle .jiqi-glyph {
    color: #64748b;
}

.aiglasses-auth__password-toggle[aria-pressed="false"] svg:last-child,
.aiglasses-auth__password-toggle[aria-pressed="true"] svg:first-child {
    display: none;
}

.aiglasses-auth__options label,
.aiglasses-auth__register-terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
}

.aiglasses-auth__options label {
    width: fit-content;
    cursor: pointer;
}

.aiglasses-auth__options input,
.aiglasses-auth__register-terms input {
    flex: none;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: var(--auth-blue);
}

.aiglasses-auth__register-terms button {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: #095ed5;
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.aiglasses-auth__terms-and {
    color: var(--auth-text);
    font-weight: 400;
}

.aiglasses-auth__action {
    min-height: 56px;
    padding: 12px 24px;
    border: 0;
    border-radius: 16px;
    background: radial-gradient(ellipse at top left, #91cfff, transparent 42%),
        linear-gradient(135deg, #1677ff, #0871f3 65%, #0865f3);
    color: #fff;
    font: 600 18px/24px Inter, "Segoe UI", sans-serif;
    box-shadow: 0 8px 24px rgba(22, 119, 255, .25);
    cursor: pointer;
}

.aiglasses-auth--register .aiglasses-auth__action {
    border-radius: 28px;
}

.aiglasses-auth__action:active {
    filter: brightness(.92);
}

.aiglasses-auth__action:disabled {
    opacity: .65;
    cursor: wait;
}

.aiglasses-auth__register-link {
    margin: 16px 0 0;
    text-align: center;
    font-size: 14px;
    line-height: 24px;
}

.aiglasses-auth__register-link a {
    color: #095ed5;
    font-weight: 600;
    text-decoration: none;
}

.aiglasses-auth__register-link a:hover {
    text-decoration: underline;
}

.aiglasses-auth__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.aiglasses-auth__message {
    margin: 0;
    padding: 12px;
    border-radius: 12px;
    background: #fff1f2;
    color: #9f1239;
}

.aiglasses-auth__panel :is(button, a, input[type="checkbox"]):focus-visible {
    outline: 2px solid var(--auth-blue);
    outline-offset: 3px;
}

.aiglasses-auth--register #legal-dialog > div {
    color: #64748b;
    text-align: left;
    overflow-wrap: anywhere;
}

.aiglasses-auth--register #legal-dialog :is(img, table) {
    max-width: 100%;
}

.aiglasses-auth--register #legal-dialog a {
    color: #095ed5;
}
