@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

body.auth-split-page {
    min-height: 100vh;
    background: #ffffff;
}

.auth-split-page .page-root {
    min-height: 100vh;
}

.auth-split-main {
    min-height: 100vh;
}

.auth-split-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 56.5% 43.5%;
    background: #ffffff;
}

.auth-split-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 3rem 3rem;
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.09) 0, transparent 22%),
        radial-gradient(circle at 78% 34%, rgba(255, 255, 255, 0.08) 0, transparent 20%),
        radial-gradient(circle at 64% 76%, rgba(255, 255, 255, 0.06) 0, transparent 18%),
        linear-gradient(180deg, #060607 0%, #111214 100%);
    color: #ffffff;
    overflow: hidden;
}

.auth-split-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.95) 0 1px, transparent 1.6px),
        radial-gradient(circle at 24% 70%, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.5px),
        radial-gradient(circle at 36% 38%, rgba(255, 255, 255, 0.35) 0 1px, transparent 1.6px),
        radial-gradient(circle at 48% 84%, rgba(255, 255, 255, 0.42) 0 1px, transparent 1.5px),
        radial-gradient(circle at 68% 12%, rgba(255, 255, 255, 0.42) 0 1px, transparent 1.5px),
        radial-gradient(circle at 72% 52%, rgba(255, 255, 255, 0.56) 0 1px, transparent 1.5px),
        radial-gradient(circle at 84% 28%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.5px),
        radial-gradient(circle at 90% 74%, rgba(255, 255, 255, 0.38) 0 1px, transparent 1.5px);
    opacity: 0.9;
    pointer-events: none;
}

.auth-split-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 35%),
        linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
}

.auth-visual-top,
.auth-visual-content,
.auth-visual-bottom {
    position: relative;
    z-index: 1;
}

.auth-visual-top {
    display: flex;
    align-items: center;
}

.auth-visual-logo {
    display: inline-flex;
    align-items: center;
}

.auth-visual-logo img {
    width: 180px;
    height: auto;
    display: block;
}

.auth-visual-content {
    max-width: 36rem;
    padding: 4rem 0;
}

.auth-visual-content h1 {
    margin: 0;
    font-family: 'Sora', sans-serif;
    font-size: clamp(3rem, 5vw, 4.8rem);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -0.06em;
}

.auth-visual-rule {
    width: min(100%, 18rem);
    height: 1px;
    margin: 1.75rem 0 1.5rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.08));
}

.auth-visual-content p {
    margin: 0;
    max-width: 26rem;
    color: rgba(255, 255, 255, 0.74);
    font-family: 'Manrope', sans-serif;
    font-size: 1.15rem;
    line-height: 1.75;
}

.auth-visual-bottom {
    color: rgba(255, 255, 255, 0.46);
    font-family: 'Manrope', sans-serif;
    font-size: 0.92rem;
    line-height: 1.6;
}

.auth-split-panel {
    display: flex;
    flex-direction: column;
    padding: 2.75rem 2.9rem;
    background: #f8f8f7;
    color: #111111;
}

.auth-panel-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 2rem;
    color: #505050;
    font-family: 'Manrope', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
}

.auth-panel-inner {
    width: min(100%, 29rem);
    margin: auto;
}

.auth-panel-step form {
    margin: 0;
}

#loginForm,
#forgotPasswordForm,
#accountStepForm,
#registerForm {
    display: grid;
    gap: 0.55rem;
}

#verifyForm {
    display: grid;
    gap: 0.7rem;
}

.auth-panel-step {
    display: none;
}

.auth-panel-step.is-active {
    display: block;
}

.auth-panel-header {
    margin-bottom: 1.85rem;
}

.auth-panel-header h2,
.auth-panel-header h1 {
    margin: 0;
    color: #121212;
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.08;
}

.auth-panel-header p {
    margin: 0.85rem 0 0;
    color: #666666;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
}

.auth-panel-links {
    margin-top: 0.5rem;
    color: #666666;
    font-family: 'Manrope', sans-serif;
    font-size: 0.96rem;
}

.auth-panel-links.is-separated {
    margin-bottom: 1rem;
}

.auth-panel-links a,
.auth-inline-link,
.auth-panel-meta a {
    color: #111111;
    font-weight: 700;
    text-decoration: none;
}

.auth-panel-links a:hover,
.auth-inline-link:hover,
.auth-panel-meta a:hover {
    color: #000000;
}

.auth-social-stack {
    display: grid;
    gap: 0.75rem;
}

.auth-social-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.9rem 1.15rem;
    border: 1px solid #d9d9d6;
    border-radius: 16px;
    background: #ffffff;
    color: #111111;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.auth-social-btn:hover {
    border-color: #bcbcb7;
    background: #fcfcfb;
}

.auth-social-btn.is-primary {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

.auth-social-btn.is-primary:hover {
    background: #000000;
    border-color: #000000;
}

.auth-social-btn.is-secondary {
    background: #ffffff;
    border-color: #d9d9d6;
    color: #111111;
}

.auth-social-btn .google-icon {
    width: 20px;
    height: 20px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1rem 0 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d7d7d3;
}

.auth-divider span {
    color: #777777;
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
}

.auth-inline-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border-radius: 14px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
}

.auth-inline-message.is-error {
    border: 1px solid #e3cdcd;
    background: #fbf3f3;
    color: #7a2e2e;
}

.auth-inline-message.is-success {
    border: 1px solid #d8dfd3;
    background: #f6f8f4;
    color: #31512f;
}

.auth-form-group {
    margin-bottom: 0;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.auth-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-field {
    position: relative;
}

.auth-field i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8a8a87;
    font-size: 0.98rem;
}

.auth-field input {
    width: 100%;
    height: 3.35rem;
    padding: 0 3rem 0 2.9rem;
    border: 1px solid #d9d9d6;
    border-radius: 16px;
    background: #ffffff;
    color: #111111;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.auth-field input::placeholder {
    color: #9a9a98;
    font-weight: 500;
}

.auth-field input:focus {
    outline: none;
    border-color: #111111;
    background: #ffffff;
}

.auth-field input:hover {
    border-color: #bebebb;
}

.auth-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    background: transparent;
    border-radius: 999px;
    color: #8a8a87;
    cursor: pointer;
}

.auth-password-toggle:hover {
    color: #111111;
}

.auth-panel-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.2rem;
    margin-bottom: 0.7rem;
    color: #666666;
    font-family: 'Manrope', sans-serif;
    font-size: 0.94rem;
}

.auth-primary-btn,
.auth-secondary-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3.5rem;
    padding: 0.9rem 1.2rem;
    border: 0;
    border-radius: 999px;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.auth-primary-btn {
    background: #111111;
    color: #ffffff;
}

.auth-primary-btn:hover {
    background: #000000;
}

.auth-secondary-btn {
    background: #ebebe8;
    color: #111111;
}

.auth-secondary-btn:hover {
    background: #deded9;
}

.auth-primary-btn[disabled],
.auth-secondary-btn[disabled],
.auth-resend-btn[disabled] {
    opacity: 0.7;
    cursor: wait;
}

.auth-primary-btn .corp-spinner {
    width: 18px;
    height: 18px;
    border-color: rgba(255, 255, 255, 0.28);
    border-top-color: #ffffff;
}

.auth-secondary-btn .corp-spinner,
.auth-resend-btn .corp-spinner {
    width: 18px;
    height: 18px;
    border-color: rgba(17, 17, 17, 0.18);
    border-top-color: #111111;
}

.auth-step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.auth-step-label {
    color: #666666;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-step-back {
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid #d9d9d6;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.auth-step-back:hover {
    background: #f3f3f1;
}

.auth-summary {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: 1px solid #dcdcd8;
    background: #ffffff;
    color: #666666;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    line-height: 1.65;
}

.auth-summary strong {
    color: #111111;
}

.auth-legal-note {
    margin-top: 0.85rem;
    color: #666666;
    font-family: 'Manrope', sans-serif;
    font-size: 0.88rem;
    line-height: 1.75;
}

.auth-legal-note a {
    color: #111111;
    font-weight: 700;
    text-decoration: none;
}

.auth-footer-line {
    margin-top: 1.2rem;
    color: #666666;
    font-family: 'Manrope', sans-serif;
    font-size: 0.96rem;
}

.auth-footer-line button {
    border: 0;
    background: transparent;
    padding: 0;
    color: #111111;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.auth-code-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.8rem;
}

.auth-code-grid .code-input {
    width: 100%;
    height: 3.65rem;
    border: 1px solid #d9d9d6;
    border-radius: 16px;
    background: #ffffff;
    color: #111111;
    text-align: center;
    font-family: 'Sora', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.auth-code-grid .code-input:focus {
    outline: none;
    border-color: #111111;
}

.auth-resend-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.4rem;
    color: #666666;
    font-family: 'Manrope', sans-serif;
    font-size: 0.94rem;
}

.auth-resend-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 0;
    background: transparent;
    color: #111111;
    font-family: 'Manrope', sans-serif;
    font-size: 0.94rem;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 1080px) {
    .auth-split-layout {
        grid-template-columns: 1fr;
    }

    .auth-split-visual {
        min-height: 26rem;
        padding: 2rem 1.5rem;
    }

    .auth-split-panel {
        padding: 2rem 1.5rem;
    }

    .auth-panel-inner {
        margin: 0;
        width: min(100%, 32rem);
    }
}

@media (max-width: 768px) {
    .auth-visual-bottom {
        display: none;
    }
}

@media (max-width: 640px) {
    .auth-visual-content {
        padding: 2.5rem 0 0;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-code-grid {
        gap: 0.45rem;
    }

    .auth-code-grid .code-input {
        height: 3.2rem;
        font-size: 1.1rem;
    }

    .auth-resend-row,
    .auth-panel-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}
