/* Auth v2 — 로그인/회원가입 (블루 테마, v2 디자인 시스템) */

:root {
    --av2-bg: #f8fafc;
    --av2-surface: #ffffff;
    --av2-surface-soft: rgba(255, 255, 255, 0.82);
    --av2-border: rgba(148, 163, 184, 0.25);
    --av2-shadow: 0 8px 30px rgba(15, 23, 42, 0.10);
    --av2-shadow-soft: 0 4px 16px rgba(15, 23, 42, 0.06);
    --av2-accent: #3b82f6;
    --av2-accent-dark: #2563eb;
    --av2-accent-light: rgba(59, 130, 246, 0.12);
    --av2-text-primary: #0f172a;
    --av2-text-secondary: #475569;
    --av2-text-muted: #64748b;
    --av2-radius: 10px;
    --av2-radius-sm: 6px;
}

.text-primary {
    color: var(--av2-accent-dark);
    font-weight: 600;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--av2-bg);
    color: var(--av2-text-primary);
    display: flex;
    flex-direction: column;
    font-size: 16px;
    padding-top: 64px; /* site-header fixed 높이 보정 */
}

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

/* ── Header ── */

.av2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem clamp(1.5rem, 4vw, 3rem);
    background: var(--av2-surface);
    border-bottom: 1px solid var(--av2-border);
}

.av2-header__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--av2-text-primary);
}

.av2-header__logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.av2-header__name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.av2-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.av2-header__link {
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--av2-text-secondary);
    text-decoration: none;
    border-radius: 999px;
    transition: color 0.15s, background 0.15s;
}

.av2-header__link:hover {
    color: var(--av2-accent-dark);
    background: var(--av2-accent-light);
}

.av2-header__link--primary {
    background: var(--av2-accent-dark);
    color: #fff;
}

.av2-header__link--primary:hover {
    background: #1d4ed8;
    color: #fff;
}

/* Header Nav */
.av2-header__nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.av2-header__nav a {
    padding: 0.4rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--av2-text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.av2-header__nav a:hover {
    color: var(--av2-accent-dark);
    background: var(--av2-accent-light);
}

/* Header Credit */
.av2-header__credit {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--av2-accent-dark);
    background: var(--av2-accent-light);
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s;
}

.av2-header__credit:hover {
    background: rgba(59, 130, 246, 0.18);
}

.av2-header__credit i {
    color: #f59e0b;
    font-size: 0.78rem;
}

/* Header User */
.av2-header__user {
    position: relative;
}

.av2-header__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--av2-accent-light);
    color: var(--av2-accent-dark);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.av2-header__avatar:hover {
    background: rgba(59, 130, 246, 0.2);
}

.av2-header__user-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--av2-border);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
    padding: 0.5rem 0;
    z-index: 100;
}

.av2-header__user-menu.is-open {
    display: block;
}

.av2-header__user-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
    color: var(--av2-text-primary);
    text-decoration: none;
    transition: background 0.1s;
}

.av2-header__user-menu a:hover {
    background: #f8fafc;
}

.av2-header__user-menu a i {
    width: 16px;
    text-align: center;
    color: var(--av2-text-muted);
    font-size: 0.82rem;
}

.av2-header__user-divider {
    height: 1px;
    background: var(--av2-border);
    margin: 0.35rem 0;
}

/* Header 반응형 */
@media (max-width: 720px) {
    .av2-header__nav {
        display: none;
    }
}

/* ── Button (index.css 컴포넌트 이관) ── */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.45rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.96rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button--primary {
    background: var(--av2-accent-dark);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    color: #ffffff;
}

.button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35);
    color: #ffffff;
}

.button--ghost {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.85);
    color: var(--av2-text-primary);
}

.button--ghost:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(240, 245, 255, 0.9);
}

.button--block {
    width: 100%;
    text-align: center;
}

/* ── Global Modal (index.css 컴포넌트 이관) ── */

.global-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1090;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.global-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.global-modal.is-hidden {
    display: none !important;
}

.global-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(4px);
}

.global-modal__dialog {
    position: relative;
    z-index: 1;
    max-width: min(440px, calc(100% - 2.4rem));
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    padding: clamp(1.9rem, 4vw, 2.4rem);
    box-shadow: 0 32px 60px rgba(15, 23, 42, 0.22);
    display: grid;
    gap: 1.2rem;
    text-align: center;
}

.global-modal__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    border: none;
    background: transparent;
    color: rgba(71, 85, 105, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
}

.global-modal__close:hover {
    color: rgba(15, 23, 42, 0.85);
}

.global-modal__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--av2-accent-light);
    display: grid;
    place-items: center;
    color: var(--av2-accent-dark);
    font-size: 2rem;
}

.global-modal__title {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 1.7rem);
    font-weight: 700;
    color: var(--av2-text-primary);
}

.global-modal__message {
    margin: 0;
    color: var(--av2-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Modal Logos (A.innov × 굿-Job) */
.global-modal__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 auto;
}

.global-modal__logo-img {
    height: 48px;
    object-fit: contain;
}

.global-modal__logo-x {
    font-size: 1.2rem;
    color: var(--av2-text-muted);
    font-weight: 300;
}

.global-modal__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
    background: var(--av2-accent-dark);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
}

.global-modal__action:hover {
    filter: brightness(1.05);
    color: #ffffff;
}

/* ── Layout ── */

.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;
}

/* ── Panel (카드) ── */

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

.auth-panel--compact {
    width: 100%;
    max-width: 520px;
    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(--av2-text-secondary);
    line-height: 1.7;
    font-size: 0.96rem;
}

/* ── Badge ── */

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

/* ── Alert ── */

.auth-alert {
    border-radius: var(--av2-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: var(--av2-accent-light);
    border-color: rgba(59, 130, 246, 0.25);
    color: var(--av2-accent-dark);
}

.auth-alert--info {
    background: var(--av2-accent-light);
    border-color: rgba(59, 130, 246, 0.25);
    color: var(--av2-accent-dark);
}

/* ── Form ── */

.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(--av2-text-primary);
}

.auth-field input {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: var(--av2-radius-sm);
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.92);
    color: var(--av2-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(--av2-accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    background: #ffffff;
}

/* ── Consent (동의 영역) ── */

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

.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(59, 130, 246, 0.18);
    color: var(--av2-accent-dark);
    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: var(--av2-accent-dark);
    font-weight: 600;
}

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

/* ── Options / Link ── */

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

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

/* ── Submit Button ── */

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.2rem;
    border-radius: var(--av2-radius);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--av2-accent-dark);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.3);
}

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

/* ── Disabled button (인라인 <style> 이관) ── */

button:disabled {
    background-color: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
    opacity: 0.65;
    box-shadow: none;
    pointer-events: none;
}

button:disabled:hover {
    background-color: #e0e0e0;
    transform: none;
}

/* ── Divider ── */

.auth-divider {
    position: relative;
    text-align: center;
    font-size: 0.88rem;
    color: var(--av2-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;
}

/* ── Social Button ── */

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

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: var(--av2-radius-sm);
    border: 1px solid #e2e8f0;
    background: #fff;
    color: var(--av2-text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.social-button:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.social-button--kakao {
    background: #fff;
}

.social-button--naver {
    background: #fff;
}

/* ── Meta ── */

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

/* ── Aside (회원가입 사이드 카드) ── */

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

.auth-aside__card {
    background: var(--av2-surface-soft);
    border-radius: var(--av2-radius);
    padding: clamp(1.8rem, 3.5vw, 2.2rem);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--av2-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(--av2-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(--av2-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(--av2-accent);
    margin-top: 0.15rem;
}

.auth-aside__card--gradient {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(37, 99, 235, 0.12));
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ── Footer ── */

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

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

/* ── Checkbox ── */

.checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--av2-text-secondary);
    cursor: pointer;
}

.checkbox--ainnov {
    background: rgba(59, 130, 246, 0.07);
    border: 1px solid rgba(59, 130, 246, 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(--av2-accent-dark);
    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(--av2-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(--av2-accent);
}

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

/* ── Accordion (프로모션 코드, signup.php 인라인 이관) ── */

.auth-accordion {
    border: 1.5px dashed #cbd5e1;
    border-radius: var(--av2-radius-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
    background: #f8fafc;
}

.auth-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    background-color: #f8fafc;
}

.auth-accordion-header span {
    font-weight: 500;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--av2-accent);
    letter-spacing: -0.01em;
}

.auth-accordion-header i {
    transition: transform 0.2s ease-in-out;
}

.auth-accordion.is-open .auth-accordion-header i {
    transform: rotate(180deg);
}

.auth-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    padding: 0 1rem;
}

.auth-accordion.is-open .auth-accordion-content {
    max-height: 100px;
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
}

.auth-accordion-content input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--av2-radius-sm);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s;
}

.auth-accordion-content input:focus {
    border-color: var(--av2-accent);
}

/* ── SR Only ── */

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

/* ── Legal (약관/개인정보) ── */

.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(--av2-text-secondary);
    line-height: 1.7;
    font-size: 0.96rem;
}

.legal-summary {
    display: grid;
    gap: 0.6rem;
    padding: 1.2rem 1.4rem;
    background: var(--av2-accent-light);
    border-radius: var(--av2-radius-sm);
    color: var(--av2-text-secondary);
    font-size: 0.93rem;
}

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

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

.legal-section p {
    margin: 0;
    color: var(--av2-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(--av2-text-secondary);
    font-size: 0.95rem;
}

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

.legal-contact {
    background: var(--av2-accent-light);
    border-radius: var(--av2-radius-sm);
    padding: 1rem 1.2rem;
    font-size: 0.92rem;
    color: var(--av2-text-secondary);
}

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

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

/* ── Global Modal (A.innov 동의 모달) ──
 * 기본 .global-modal 스타일은 위(274줄)에서 정의됨.
 * 중복 선언 제거 — 기존 is-visible 전환(opacity + pointer-events)으로 통일.
 */

.global-modal__card {
    background: #fff;
    border-radius: var(--av2-radius);
    padding: 2rem;
    max-width: 460px;
    width: 92vw;
    box-shadow: var(--av2-shadow);
}

.global-modal__card h3 {
    margin: 0 0 1rem;
    font-size: 1.15rem;
}

.global-modal__card p {
    margin: 0 0 1.5rem;
    color: var(--av2-text-secondary);
    font-size: 0.94rem;
    line-height: 1.6;
}

.global-modal__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.global-modal__actions button {
    padding: 0.6rem 1.2rem;
    border-radius: var(--av2-radius-sm);
    border: 1px solid var(--av2-border);
    background: #fff;
    color: var(--av2-text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.global-modal__actions button:hover {
    background: #f8fafc;
    border-color: var(--av2-accent);
}

.global-modal__actions button.global-modal__action,
.global-modal__actions .btn-confirm {
    background: var(--av2-accent-dark);
    color: #fff;
    border-color: var(--av2-accent-dark);
}

.global-modal__actions button.global-modal__action:hover,
.global-modal__actions .btn-confirm:hover {
    background: #1d4ed8;
}

/* 취소 버튼 (data-consent-cancel 등) */
.global-modal__actions button[data-consent-cancel],
.global-modal__actions button[data-credit-close] {
    background: #f1f5f9;
    color: var(--av2-text-primary);
    border-color: #e2e8f0;
}

.global-modal__actions button[data-consent-cancel]:hover,
.global-modal__actions button[data-credit-close]:hover {
    background: #e2e8f0;
}

/* ── Social Icons (가로 아이콘 배치) ── */

.auth-social--icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    background: var(--av2-surface);
    color: var(--av2-text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.social-icon:hover {
    transform: translateY(-2px);
    border-color: var(--av2-accent);
}

.social-icon--google:hover {
    border-color: #4285f4;
}

.social-icon--kakao:hover {
    border-color: #FEE500;
}

.social-icon--naver:hover {
    border-color: #03C75A;
}

.social-icon img {
    border-radius: 4px;
}

/* Social Button Icon */
.social-button__icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.social-button--google .social-button__icon {
    width: 22px;
    height: 22px;
    border-radius: 0;
}

/* ── Consent Compact (동의 컴팩트) ── */

.auth-consent--compact {
    border: 0;
    padding: 0;
    margin: 0;
    min-inline-size: auto;
    border-radius: var(--av2-radius-sm);
    background: transparent;
}

.auth-consent--compact .checkbox--all {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--av2-border);
    margin-bottom: 0.5rem;
    width: 100%;
    display: flex;
}

.checkbox__text-bold {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--av2-text-primary);
}

.auth-consent__items {
    display: grid;
    gap: 0.4rem;
    padding: 0.25rem 0;
}

.auth-consent__items .checkbox {
    font-size: 0.85rem;
    padding: 0.3rem 0;
}

.auth-consent__required {
    font-size: 0;
    margin-left: 0.2rem;
}

.auth-consent__required::before {
    content: '*';
    font-size: 0.9rem;
    font-weight: 700;
    color: #ef4444;
    vertical-align: middle;
}

.auth-consent__optional {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--av2-text-muted);
    margin-left: 0.25rem;
}

/* ── Responsive ── */

@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: 640px) {
    .auth-main,
    .auth-main--login {
        width: auto;
        margin-left: 16px;
        margin-right: 16px;
    }

    .auth-panel {
        padding: 1.5rem;
    }

    .auth-panel--compact {
        max-width: 100%;
    }

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