:root {
    --auth-canvas: #ffffff;
    --auth-canvas-tint: #14161e;
    --auth-surface: #ffffff;
    --auth-subtle: #f7f7f7;
    --auth-fg: #0a0b0d;
    --auth-secondary: #5b616e;
    --auth-faded: #a4aab4;
    --auth-line: #dce1e8;
    --auth-line-faint: #eef0f3;
    --auth-brand: #0040c1;
    --auth-brand-hover: #0035a0;
    --auth-danger: #cf202f;
    --auth-success: #05b169;
    --auth-warning: #f4b000;
    --auth-shadow-panel: 1px 2px 12px 0 rgba(0, 0, 0, .05);
    --auth-font-sans: "Geist", "Sohne", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --auth-font-mono: "Geist Mono", "Sohne Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

body.auth-layout-body {
    margin: 0;
    min-height: 100vh;
    background: var(--auth-canvas);
    color: var(--auth-fg);
    font-family: var(--auth-font-sans);
    line-height: 1.5;
}

.auth-page-shell,
.auth-page-shell button,
.auth-page-shell input,
.auth-page-shell label,
.auth-page-shell p,
.auth-page-shell a,
.auth-page-shell h1,
.auth-page-shell h2,
.auth-page-shell span {
    font-family: var(--auth-font-sans);
}

.auth-page-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.auth-form-pane {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    padding: 40px;
    background: var(--auth-canvas);
}

.auth-brand {
    display: inline-flex;
    width: fit-content;
    height: 28px;
    align-items: center;
    color: #2a2b69;
    text-decoration: none;
}

.auth-brand img {
    display: block;
    width: auto;
    height: 100%;
}

.auth-brand-wordmark {
    display: inline-flex;
    align-items: flex-start;
    background: linear-gradient(90deg, #4295d1 0%, #2a2b69 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-size: 29px;
    font-weight: 700;
    line-height: .95;
}

.auth-brand-wordmark sup {
    margin-left: 1px;
    color: #2a2b69;
    font-size: 8px;
    line-height: 1;
}

.auth-form-wrap {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.auth-panel {
    width: min(100%, 448px);
}

.auth-title {
    margin: 0 0 24px;
    color: #000;
    font-size: 32px;
    font-family: var(--auth-font-sans) !important;
    font-weight: 500 !important;
    line-height: 1.1;
    letter-spacing: -.0125em;
    text-align: center;
}

.auth-social-button,
.auth-primary-button {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}

.auth-social-button {
    border: 1px solid var(--auth-line);
    background: var(--auth-surface);
    color: var(--auth-fg);
    font-family: var(--auth-font-sans) !important;
    font-weight: 500 !important;
}

.auth-social-button:hover {
    background: var(--auth-subtle);
    color: var(--auth-fg);
    text-decoration: none;
}

.auth-social-button span {
    font-family: var(--auth-font-sans) !important;
    font-weight: 500 !important;
}

.auth-google-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--auth-faded);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--auth-line);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.auth-label {
    margin: 0;
    color: var(--auth-fg);
    font-family: var(--auth-font-sans);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.auth-required {
    color: var(--auth-danger);
}

.auth-input,
.auth-select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    background: var(--auth-surface);
    color: var(--auth-fg);
    font-family: var(--auth-font-sans);
    font-size: 16px;
    line-height: 1.5;
    padding: 8px 12px !important;
    outline: none;
    box-shadow: none;
    transition: border-color .15s ease, background-color .15s ease;
}

.auth-input::placeholder {
    color: #9da4af !important;
    font-family: var(--auth-font-sans);
    font-size: 16px !important;
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus,
.auth-input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--auth-fg);
    -webkit-box-shadow: 0 0 0 1000px var(--auth-surface) inset;
    box-shadow: 0 0 0 1000px var(--auth-surface) inset;
    caret-color: var(--auth-fg);
    transition: background-color 9999s ease-out 0s;
}

.auth-input:focus,
.auth-select:focus {
    border-color: var(--auth-brand);
    box-shadow: none;
}

.auth-input.is-invalid,
.auth-select.is-invalid {
    border-color: var(--auth-danger);
}

.auth-link {
    color: var(--auth-secondary);
    font-family: var(--auth-font-sans) !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--auth-fg);
    text-decoration: underline;
}

.auth-primary-button {
    margin-top: 8px;
    border: 1px solid var(--auth-brand);
    background: var(--auth-brand);
    color: #fff;
    font-family: var(--auth-font-sans) !important;
    font-weight: 500 !important;
}

.auth-primary-button:hover,
.auth-primary-button:focus {
    background: var(--auth-brand-hover);
    border-color: var(--auth-brand-hover);
    color: #fff;
}

.auth-switch-copy,
.auth-legal-copy {
    margin: 24px 0 0;
    color: var(--auth-secondary);
    font-family: var(--auth-font-sans);
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.auth-legal-copy {
    margin-top: 16px;
}

.auth-switch-copy a,
.auth-legal-copy a {
    color: var(--auth-fg);
    font-family: var(--auth-font-sans) !important;
    font-weight: 600;
    text-decoration: none;
}

.auth-switch-copy a:hover,
.auth-legal-copy a:hover {
    text-decoration: underline;
}

.auth-helper-text {
    margin: 2px 0 0;
    color: var(--auth-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.auth-error,
.invalid-feedback.auth-error {
    display: block;
    margin: 0;
    color: var(--auth-danger);
    font-size: 13px;
    line-height: 1.4;
}

.auth-verify-lede {
    margin: 0 0 20px;
    color: var(--auth-secondary);
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.auth-verify-email {
    color: var(--auth-fg);
    font-weight: 600;
}

.auth-verify-icon {
    display: flex;
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 64, 193, .08);
    color: var(--auth-brand);
}

.auth-verify-icon svg {
    width: 28px;
    height: 28px;
}

.auth-mail-button-wrap {
    margin: 4px 0 16px;
    text-align: center;
}

.auth-mail-button-wrap span{
    font-weight: bold;
}

.auth-mail-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    background: var(--auth-surface);
    color: var(--auth-fg);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}

.auth-mail-button:hover {
    background: var(--auth-subtle);
    color: var(--auth-fg);
    text-decoration: none;
}

.auth-mail-button-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

.auth-verify-feedback {
    text-align: center;
}

#resend-link.is-disabled,
.auth-link.is-disabled {
    pointer-events: none;
    opacity: .5;
}

.auth-footer {
    display: flex;
    width: min(100%, 448px);
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 24px auto 0;
    border-top: 1px solid var(--auth-line-faint);
    padding-top: 16px;
    color: var(--auth-secondary);
    font-family: var(--auth-font-sans);
    font-size: 13px;
    line-height: 1.4;
}

.auth-solo-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    padding: 28px 40px 24px;
    background: var(--auth-canvas);
}

.auth-solo-header {
    width: 100%;
}

.auth-solo-body {
    display: flex;
    flex: 1;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 0 40px;
}

.auth-solo-panel {
    width: min(100%, 560px);
}

.auth-solo-title {
    margin: 0 0 8px;
    color: #000;
    font-size: 36px;
    font-weight: 500 !important;
    line-height: 1.15;
    text-align: center;
}

.auth-solo-lede {
    margin: 0 0 32px;
    color: var(--auth-secondary);
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.auth-solo-form {
    gap: 18px;
}

.auth-solo-foot {
    margin: 12px 0 0;
    color: var(--auth-secondary);
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.auth-solo-footer {
    width: min(100%, 560px);
    margin: 0 auto;
}

.auth-phone-row {
    display: grid;
    grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr);
    gap: 10px;
}

.auth-phone-code {
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230a0b0d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    padding-right: 32px;
    appearance: none;
    -webkit-appearance: none;
}

.auth-textarea {
    min-height: 92px;
    padding-top: 10px;
    line-height: 1.45;
    resize: vertical;
}

.auth-check-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
}

.auth-check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    cursor: pointer;
}

.auth-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--auth-brand);
    cursor: pointer;
}

.auth-check-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auth-check-title {
    color: #000;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.auth-check-title a {
    color: var(--auth-brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-check-sub {
    color: var(--auth-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.auth-primary-button:disabled,
.auth-primary-button[disabled] {
    background: var(--auth-line);
    border-color: var(--auth-line);
    color: var(--auth-secondary);
    cursor: not-allowed;
}

.auth-footer a {
    color: inherit;
    font-family: var(--auth-font-sans) !important;
    text-decoration: none;
}

.auth-footer a:hover {
    color: #000;
    text-decoration: underline;
}

.auth-marketing-pane {
    position: relative;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background:
        radial-gradient(75% 70% at 50% 50%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 75%),
        radial-gradient(30rem 30rem at 8% 4%, rgba(174, 198, 255, .60) 0%, rgba(174, 198, 255, 0) 60%),
        radial-gradient(28rem 28rem at 100% 104%, rgba(151, 187, 255, .58) 0%, rgba(151, 187, 255, 0) 60%),
        radial-gradient(22rem 22rem at 84% 38%, rgba(221, 208, 255, .40) 0%, rgba(221, 208, 255, 0) 60%),
        linear-gradient(135deg, #F2F6FF 0%, #E9F0FF 50%, #F1F8FF 100%);
    color: var(--auth-fg);
    overflow: hidden;
}

.auth-marketing-content {
    position: relative;
    z-index: 1;
    width: min(100%, 672px);
}

.auth-marketing-content h2 {
    margin: 0;
    color: var(--auth-fg);
    font-size: clamp(48px, 4.5vw, 64px) !important;
    font-family: var(--auth-font-sans) !important;
    font-weight: 600 !important;
    line-height: 1.05;
    letter-spacing: -.025em;
}

.auth-marketing-content > p {
    margin: 24px 0 0;
    color: var(--auth-secondary);
    font-family: var(--auth-font-sans);
    font-size: 16px;
    line-height: 1.5;
}

@media (max-width: 1199.98px) {
    .auth-page-shell {
        grid-template-columns: 1fr;
    }

    .auth-marketing-pane {
        display: none;
    }

    .auth-form-pane {
        padding: 40px 28px;
    }
}

@media (max-width: 767.98px) {
    .auth-form-pane {
        padding: 28px 20px 32px;
    }

    .auth-form-wrap {
        padding-top: 24px;
    }

    .auth-title {
        font-size: 28px;
    }

    .auth-social-button,
    .auth-primary-button {
        font-size: 15px;
    }

    .auth-input,
    .auth-select {
        min-height: 42px;
        font-size: 16px;
    }

    .auth-label,
    .auth-link,
    .auth-switch-copy,
    .auth-legal-copy,
    .auth-footer {
        font-size: 13px;
    }
}
