/* Auth pages share one restrained shell so login and signup feel like the same trusted flow. */
#mainNav,
#mobileMenu,
footer {
    display: none !important;
}

body {
    background-color: #f4f7fb;
}

.auth-shell-page {
    /*
     * Auth chrome mirrors the home correction: quiet surfaces, blue-only emphasis,
     * and enough contrast for trust without decorative glow.
     */
    --auth-shell-focus-ring: 0 0 0 3px rgba(36, 87, 197, 0.13);
    --auth-shell-focus-border: rgba(36, 87, 197, 0.28);
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 12%, rgba(36, 87, 197, 0.08), transparent 28rem),
        radial-gradient(circle at 86% 10%, rgba(148, 163, 184, 0.12), transparent 20rem),
        linear-gradient(180deg, #f4f7fb 0%, #eef3f8 52%, #fafbfd 100%);
}

.auth-shell-page::before,
.auth-shell-page::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(14px);
    opacity: 0.52;
}

.auth-shell-page::before {
    top: 4rem;
    left: -4rem;
    width: 14rem;
    height: 14rem;
    background: radial-gradient(circle, rgba(231, 239, 255, 0.9) 0%, rgba(231, 239, 255, 0) 74%);
}

.auth-shell-page::after {
    right: -3rem;
    bottom: 4rem;
    width: 12rem;
    height: 12rem;
    background: radial-gradient(circle, rgba(226, 232, 240, 0.86) 0%, rgba(226, 232, 240, 0) 76%);
}

.auth-shell-main {
    position: relative;
    z-index: 1;
    padding:
        max(env(safe-area-inset-top), 1.5rem)
        1rem
        max(env(safe-area-inset-bottom), 1.5rem);
}

.auth-shell-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 3rem);
}

.auth-shell-card {
    width: 100%;
    max-width: 35rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1.85rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 20px 44px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    /* Slightly denser auth panels read as more deliberate without changing the flow. */
    padding: clamp(1.4rem, 3.8vw, 2.2rem);
    backdrop-filter: blur(16px);
}

.auth-shell-card--wide {
    max-width: 72rem;
}

.auth-shell-header {
    text-align: center;
}

.auth-shell-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 2.8rem;
    padding: 0.4rem 1rem 0.4rem 0.5rem;
    border: 1px solid rgba(36, 87, 197, 0.14);
    border-radius: 999px;
    background: rgba(237, 243, 255, 0.9);
    color: var(--color-brand-700);
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-shell-brand:hover,
.auth-shell-brand:focus-visible {
    color: var(--color-brand-900);
    text-decoration: none;
}

.auth-shell-brand:focus-visible {
    outline: none;
    box-shadow: var(--auth-shell-focus-ring);
}

.auth-shell-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--color-brand-700);
    box-shadow: 0 10px 20px rgba(36, 87, 197, 0.12);
}

.auth-shell-kicker {
    margin: 1.1rem 0 0;
    color: #667085;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-shell-title {
    margin: 0.58rem 0 0;
    color: #101828;
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 2.7rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    word-break: keep-all;
}

.auth-shell-title--compact {
    font-size: clamp(1.8rem, 5vw, 2.35rem);
}

.auth-shell-summary {
    margin: 0.8rem auto 0;
    max-width: 28rem;
    color: #475467;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: -0.014em;
    word-break: keep-all;
}

.auth-shell-stack,
.auth-shell-form {
    display: grid;
    gap: 0.82rem;
}

.auth-shell-stack {
    margin-top: 1.45rem;
}

.auth-shell-notice,
.auth-shell-muted-panel,
.auth-shell-checkbox-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.2rem;
    padding: 0.92rem 0.98rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.auth-shell-notice::before,
.auth-shell-muted-panel::before,
.auth-shell-checkbox-card::before {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.18) 100%);
    pointer-events: none;
}

.auth-shell-notice {
    margin-top: 1.2rem;
    border: 1px solid rgba(36, 87, 197, 0.15);
    background: rgba(237, 243, 255, 0.88);
}

.auth-shell-notice--error {
    border-color: rgba(196, 73, 99, 0.22);
    background: rgba(255, 241, 244, 0.92);
}

.auth-shell-notice-title {
    margin: 0;
    color: #101828;
    font-size: 0.92rem;
    font-weight: 800;
}

.auth-shell-notice--error .auth-shell-notice-title {
    color: #9f1239;
}

.auth-shell-notice-copy {
    margin: 0.3rem 0 0;
    color: #475467;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.55;
}

.auth-shell-notice--error .auth-shell-notice-copy {
    color: #be123c;
}

.auth-shell-provider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    min-height: 3.9rem;
    padding: 0.95rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 1.3rem;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    text-decoration: none;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        filter 180ms ease;
}

.auth-shell-provider:hover,
.auth-shell-provider:focus-visible {
    transform: translateY(-1px);
    text-decoration: none;
    filter: brightness(0.985);
}

.auth-shell-provider:focus-visible {
    outline: none;
    box-shadow: var(--auth-shell-focus-ring);
}

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

.auth-shell-provider svg {
    flex-shrink: 0;
}

.auth-shell-provider--kakao {
    border-color: rgba(231, 211, 65, 0.82);
    background: #fee500;
    color: #2f1a1a;
    box-shadow: 0 10px 20px rgba(234, 211, 65, 0.2);
}

.auth-shell-provider--naver {
    border-color: rgba(3, 199, 90, 0.28);
    background: #03c75a;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(3, 199, 90, 0.16);
}

.auth-shell-muted-panel {
    margin-top: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(248, 250, 252, 0.88);
}

.auth-shell-muted-panel-title {
    margin: 0;
    color: #101828;
    font-size: 0.9rem;
    font-weight: 800;
}

.auth-shell-muted-panel-copy {
    margin: 0.3rem 0 0;
    color: #475467;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.6;
}

.auth-shell-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.7rem;
}

.auth-shell-pill {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(237, 243, 255, 0.94);
    color: var(--color-brand-700);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.auth-shell-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.65rem;
    margin-top: 0.7rem;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 700;
}

.auth-shell-link {
    color: var(--color-brand-700);
    font-weight: 800;
    text-decoration-color: rgba(36, 87, 197, 0.24);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
    transition: color 160ms ease, text-decoration-color 160ms ease;
}

.auth-shell-link:hover {
    color: var(--color-brand-900);
    text-decoration-color: rgba(36, 87, 197, 0.42);
}

.auth-shell-link:focus-visible {
    outline: none;
    border-radius: 0.35rem;
    box-shadow: var(--auth-shell-focus-ring);
}

.auth-shell-footer {
    margin: 1rem 0 0;
    color: #667085;
    font-size: 0.84rem;
    font-weight: 700;
    text-align: center;
}

.auth-shell-divider {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 1.45rem 0;
    color: #98a2b3;
    font-size: 0.8rem;
    font-weight: 800;
}

.auth-shell-divider::before,
.auth-shell-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(148, 163, 184, 0.22);
}

.auth-shell-field {
    display: grid;
    gap: 0.45rem;
}

.auth-shell-label {
    color: #344054;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.auth-shell-field.has-error .auth-shell-label {
    color: #9f1239;
}

.auth-shell-required {
    color: #c44963;
}

.auth-shell-input-wrap {
    position: relative;
}

.auth-shell-field-icon {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: #c44963;
    pointer-events: none;
}

.auth-shell-form input[type="text"],
.auth-shell-form input[type="email"],
.auth-shell-form input[type="password"],
.auth-shell-form input[type="url"],
.auth-shell-form select,
.auth-shell-form textarea,
.auth-shell-input {
    width: 100%;
    min-height: 3.2rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.94);
    padding: 0.88rem 1rem;
    color: #101828;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.45;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}

.auth-shell-form input[type="text"]:hover,
.auth-shell-form input[type="email"]:hover,
.auth-shell-form input[type="password"]:hover,
.auth-shell-form input[type="url"]:hover,
.auth-shell-form select:hover,
.auth-shell-form textarea:hover,
.auth-shell-input:hover {
    border-color: rgba(148, 163, 184, 0.3);
    background: #ffffff;
}

.auth-shell-form textarea {
    min-height: 6.5rem;
    resize: vertical;
}

.auth-shell-form input::placeholder,
.auth-shell-form textarea::placeholder,
.auth-shell-input::placeholder {
    color: #98a2b3;
}

.auth-shell-form input:focus,
.auth-shell-form select:focus,
.auth-shell-form textarea:focus,
.auth-shell-input:focus {
    outline: none;
    border-color: var(--auth-shell-focus-border);
    background: #ffffff;
    box-shadow:
        var(--auth-shell-focus-ring),
        0 10px 18px rgba(36, 87, 197, 0.08);
}

.auth-shell-field.has-error input,
.auth-shell-field.has-error select,
.auth-shell-field.has-error textarea {
    border-color: rgba(196, 73, 99, 0.3);
    box-shadow: 0 0 0 3px rgba(196, 73, 99, 0.08);
}

.auth-shell-help,
.auth-shell-error {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.5;
}

.auth-shell-help {
    color: #667085;
}

.auth-shell-error {
    color: #be123c;
}

.auth-shell-checkbox-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.88);
}

.auth-shell-checkbox-card.has-error {
    border-color: rgba(196, 73, 99, 0.24);
    background: rgba(255, 241, 244, 0.9);
}

.auth-shell-checkbox-card:focus-within {
    border-color: rgba(36, 87, 197, 0.22);
    box-shadow:
        var(--auth-shell-focus-ring),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.auth-shell-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.auth-shell-checkbox-card input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    accent-color: var(--color-brand-700);
    flex-shrink: 0;
}

.auth-shell-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 3.3rem;
    border: 0;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, var(--color-brand-900) 0%, var(--color-brand-700) 100%);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    text-decoration: none;
    box-shadow:
        0 12px 24px rgba(36, 87, 197, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        filter 180ms ease;
}

.auth-shell-submit:hover,
.auth-shell-submit:focus-visible {
    transform: translateY(-1px);
    box-shadow:
        var(--auth-shell-focus-ring),
        0 14px 28px rgba(36, 87, 197, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    color: #ffffff;
    text-decoration: none;
}

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

.auth-shell-submit:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.auth-shell-action-row {
    display: grid;
    gap: 0.75rem;
}

.auth-shell-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.3rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.92);
    color: #475467;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    transition:
        border-color 160ms ease,
        color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.auth-shell-secondary-action:hover,
.auth-shell-secondary-action:focus-visible {
    border-color: rgba(148, 163, 184, 0.38);
    color: #101828;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--auth-shell-focus-ring);
}

.auth-shell-secondary-action:focus-visible {
    outline: none;
}

.auth-shell-choice-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-shell-choice-option {
    display: block;
}

.auth-shell-choice-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-shell-choice-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 100%;
    padding: 1.05rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease,
        background-color 160ms ease;
}

.auth-shell-choice-option:hover .auth-shell-choice-card,
.auth-shell-choice-input:focus-visible + .auth-shell-choice-card {
    border-color: rgba(36, 87, 197, 0.28);
    box-shadow:
        var(--auth-shell-focus-ring),
        0 12px 24px rgba(36, 87, 197, 0.08);
    transform: translateY(-1px);
}

.auth-shell-choice-input:checked + .auth-shell-choice-card {
    border-color: rgba(36, 87, 197, 0.34);
    background: rgba(237, 243, 255, 0.9);
    box-shadow:
        0 12px 24px rgba(36, 87, 197, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.auth-shell-choice-title {
    color: #101828;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-shell-choice-copy {
    color: #667085;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.55;
}

.auth-shell-choice-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 1.8rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(36, 87, 197, 0.12);
    color: var(--color-brand-700);
    font-size: 0.75rem;
    font-weight: 800;
    opacity: 0;
    transition: opacity 160ms ease;
}

.auth-shell-choice-input:checked + .auth-shell-choice-card .auth-shell-choice-badge {
    opacity: 1;
}

@media (max-width: 640px) {
    .auth-shell-wrap {
        min-height: calc(100vh - 2.5rem);
    }

    .auth-shell-card {
        border-radius: 1.55rem;
        padding: 1.2rem;
    }

    .auth-shell-brand {
        font-size: 0.78rem;
    }

    .auth-shell-provider {
        min-height: 3.6rem;
        font-size: 0.95rem;
    }
}

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