:root {
    --auth-bg: linear-gradient(140deg, #ecfdf5 0%, #eef2ff 45%, #e0f2fe 100%);
    --auth-surface: #ffffff;
    --auth-surface-soft: rgba(255, 255, 255, 0.82);
    --auth-border: rgba(148, 163, 184, 0.25);
    --auth-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
    --auth-shadow-soft: 0 18px 32px rgba(15, 23, 42, 0.08);
    --auth-accent: #10a37f;
    --auth-accent-alt: #3a6af3;
    --auth-text-primary: #0f172a;
    --auth-text-secondary: #475569;
    --auth-text-muted: #64748b;
    --auth-radius-lg: 28px;
    --auth-radius-md: 20px;
    --auth-radius-sm: 12px;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--auth-bg);
    color: var(--auth-text-primary);
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

.auth-main {
    flex: 1 0 auto;
    width: min(1100px, 92vw);
    margin: clamp(3rem, 6vw, 4.5rem) auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1.8rem, 4vw, 2.6rem);
    align-items: stretch;
}

.auth-main--login {
    flex: 1 0 auto;
    width: min(480px, 92vw);
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 3.5rem) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.auth-panel {
    background: var(--auth-surface);
    border-radius: var(--auth-radius-lg);
    border: 1px solid var(--auth-border);
    box-shadow: var(--auth-shadow);
    padding: clamp(2.4rem, 5vw, 3rem);
    display: grid;
    gap: 1.5rem;
}

.auth-panel--compact {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.auth-panel__header {
    display: grid;
    gap: 0.8rem;
}

.auth-panel__header h1 {
    margin: 0;
    font-size: clamp(1.9rem, 3.5vw, 2.4rem);
    line-height: 1.2;
}

.auth-panel__header p {
    margin: 0;
    color: var(--auth-text-secondary);
    line-height: 1.7;
    font-size: 0.96rem;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(16, 163, 127, 0.12);
    color: var(--auth-accent);
    font-size: 0.82rem;
    font-weight: 600;
}

.auth-alert {
    border-radius: var(--auth-radius-sm);
    padding: 0.95rem 1.1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    border: 1px solid transparent;
}

.auth-alert--error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #b91c1c;
}

.auth-alert--success {
    background: rgba(16, 163, 127, 0.12);
    border-color: rgba(16, 163, 127, 0.25);
    color: var(--auth-accent);
}

.auth-alert--info {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
    color: #2563eb;
}

.auth-form {
    display: grid;
    gap: 1.1rem;
}

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

.auth-field label {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--auth-text-primary);
}

.auth-field input {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: var(--auth-radius-sm);
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.92);
    color: var(--auth-text-primary);
    font-size: 1rem;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--auth-accent-alt);
    box-shadow: 0 0 0 4px rgba(58, 106, 243, 0.15);
    background: #ffffff;
}

.auth-consent {
    border: 0;
    padding: 25px 15px;
    margin: 0;
    min-inline-size: auto;
    border-radius: var(--auth-radius-sm);
    background: #edf8f5;
}

.auth-consent__notice {
    margin: 0 0 0.7rem 0;
    color: rgba(71, 85, 105, 0.85);
    font-size: 0.92rem;
    line-height: 1.55;
}

.auth-consent__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(16, 163, 127, 0.18);
    color: #0f9a6d;
    font-size: 0.78rem;
    font-weight: 600;
    align-self: flex-start;
}

.auth-consent__links {
    margin: 0;
    color: rgba(71, 85, 105, 0.7);
    font-size: 0.85rem;
}

.auth-consent__links a {
    color: #0f9a6d;
    font-weight: 600;
}

.auth-consent__links a:hover,
.auth-consent__links a:focus-visible {
    text-decoration: underline;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--auth-text-secondary);
}

.auth-link {
    color: var(--auth-accent-alt);
    font-weight: 600;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(120deg, rgba(16, 163, 127, 0.95), rgba(58, 106, 243, 0.9));
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(16, 163, 127, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 46px rgba(16, 163, 127, 0.35);
}

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

.auth-divider {
    position: relative;
    text-align: center;
    font-size: 0.88rem;
    color: var(--auth-text-muted);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    height: 1px;
    background: rgba(148, 163, 184, 0.3);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

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

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.85rem;
    border-radius: var(--auth-radius-sm);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.92);
    color: var(--auth-text-primary);
    /*font-weight: 600;*/
    font-size: 0.9rem;
    cursor: pointer;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.social-button:hover {
    border-color: rgba(58, 106, 243, 0.35);
    box-shadow: var(--auth-shadow-soft);
}

.social-button--kakao {
    background: rgba(253, 230, 138, 0.4);
}

.social-button--naver {
    background: rgba(110, 231, 183, 0.4);
}

.auth-meta {
    text-align: center;
    font-size: 0.92rem;
    color: var(--auth-text-secondary);
}

.auth-aside {
    display: grid;
    gap: 1.2rem;
}

.auth-aside__card {
    background: var(--auth-surface-soft);
    border-radius: var(--auth-radius-lg);
    padding: clamp(1.8rem, 3.5vw, 2.2rem);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--auth-shadow-soft);
    display: grid;
    gap: 1rem;
}

.auth-aside__card h2,
.auth-aside__card h3 {
    margin: 0;
    font-size: 1.35rem;
}

.auth-aside__card p {
    margin: 0;
    color: var(--auth-text-secondary);
    line-height: 1.7;
    font-size: 0.94rem;
}

.auth-aside__card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.6rem;
    color: var(--auth-text-secondary);
    font-size: 0.94rem;
}

.auth-aside__card ul li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.auth-aside__card ul i {
    color: var(--auth-accent);
    margin-top: 0.15rem;
}

.auth-aside__card--gradient {
    background: linear-gradient(135deg, rgba(16, 163, 127, 0.18), rgba(58, 106, 243, 0.18));
    border: 1px solid rgba(16, 163, 127, 0.25);
}

.auth-footer {
    padding: 2rem 1.5rem 3rem;
    text-align: center;
    color: var(--auth-text-muted);
    font-size: 0.85rem;
}

.auth-footer__biz {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: var(--auth-text-muted);
}

.checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--auth-text-secondary);
    cursor: pointer;
}
.checkbox--ainnov {
    background: rgba(16, 163, 127, 0.07);
    border: 1px solid rgba(16, 163, 127, 0.2);
    border-radius: 14px;
    padding: 0.9rem 0.8rem;
    width: 100%;
    display: flex;
    align-items: flex-start;
}

.checkbox--ainnov input[type="checkbox"] {
    margin-top: 0.35rem;
}

.checkbox__content {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.checkbox__content--column {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.45rem;
}

.checkbox__content > span {
    flex: 1 1 auto;
}

.checkbox__link {
    color: var(--auth-accent-alt);
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
}

.checkbox__link:hover,
.checkbox__link:focus {
    text-decoration: underline;
}

.checkbox__note {
    display: block;
    color: var(--auth-text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.checkbox input[type="checkbox"] {
    margin-top: 0.1rem;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1.5px solid rgba(148, 163, 184, 0.45);
    accent-color: var(--auth-accent);
}

.checkbox.optional span {
    color: var(--auth-text-muted);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.auth-main--legal {
    width: min(920px, 94vw);
    margin: clamp(2.5rem, 6vw, 4rem) auto;
    display: block;
    flex: 1 0 auto;
}

.auth-panel--legal {
    max-width: none;
    padding: clamp(2.4rem, 5vw, 3.4rem);
    gap: clamp(1.6rem, 3vw, 2.4rem);
}

.legal-header {
    display: grid;
    gap: 0.6rem;
}

.legal-header h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    line-height: 1.3;
}

.legal-header p {
    margin: 0;
    color: var(--auth-text-secondary);
    line-height: 1.7;
    font-size: 0.96rem;
}

.legal-summary {
    display: grid;
    gap: 0.6rem;
    padding: 1.2rem 1.4rem;
    background: rgba(16, 163, 127, 0.08);
    border-radius: var(--auth-radius-sm);
    color: var(--auth-text-secondary);
    font-size: 0.93rem;
}

.legal-section {
    display: grid;
    gap: 0.85rem;
}

.legal-section h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--auth-text-primary);
}

.legal-section p {
    margin: 0;
    color: var(--auth-text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.legal-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.55rem;
    color: var(--auth-text-secondary);
    font-size: 0.95rem;
}

.legal-list li {
    line-height: 1.6;
}

.legal-contact {
    background: rgba(14, 165, 233, 0.08);
    border-radius: var(--auth-radius-sm);
    padding: 1rem 1.2rem;
    font-size: 0.92rem;
    color: var(--auth-text-secondary);
}

.legal-contact a {
    color: var(--auth-accent-alt);
    font-weight: 600;
}

.legal-updated {
    font-size: 0.88rem;
    color: var(--auth-text-muted);
}

@media (max-width: 960px) {
    .auth-main {
        width: min(640px, 92vw);
    }

    .auth-main--legal {
        width: min(720px, 94vw);
        margin: clamp(2rem, 6vw, 3.5rem) auto;
    }
}

@media (max-width: 720px) {
    .auth-main {
        margin: clamp(2.5rem, 6vw, 3rem) auto;
        grid-template-columns: 1fr;
    }

    .auth-aside {
        order: 1;
    }

    .auth-main--legal {
        width: 92vw;
        margin: clamp(2rem, 6vw, 3rem) auto;
    }
}

@media (max-width: 520px) {
    .auth-panel {
        padding: 2rem;
    }

         .auth-options {
             flex-direction: column;
             align-items: flex-start;
         }
}
