:root {
    --green: #1b4332;
    --text: #101828;
    --muted: #667085;
    --line: #d0d5dd;
    --soft: #f4f8f5;
    --danger: #b42318;
    --auth-dark: #101828;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Pretendard", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, #f5f8f6 100%);
}

a {
    color: var(--green);
}

/* ── Split login layout ── */

.auth-body--split {
    background: #ffffff;
}

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

.auth-split__main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: clamp(24px, 4vw, 40px) clamp(24px, 6vw, 64px);
}

.auth-split__brand {
    flex: 0 0 auto;
}

.auth-split__logo {
    display: inline-flex;
}

.auth-split__logo img {
    display: block;
    width: clamp(120px, 18vw, 148px);
    height: auto;
}

.auth-split__panel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(100%, 420px);
    margin: 0 auto;
    padding: clamp(32px, 6vh, 72px) 0;
}

.auth-split__eyebrow {
    margin: 0 0 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--green);
}

.auth-split__title {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
}

.auth-split__lead {
    margin: 12px 0 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--muted);
}

.auth-split__alert,
.auth-split__success {
    margin: 20px 0 0;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.auth-split__alert {
    background: #fef3f2;
    color: var(--danger);
}

.auth-split__success {
    background: var(--soft);
    color: var(--green);
}

.auth-split__form {
    display: grid;
    gap: 24px;
    margin-top: clamp(28px, 5vh, 40px);
}

.auth-field {
    display: grid;
    gap: 6px;
}

.auth-field__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #344054;
}

.auth-field__input {
    width: 100%;
    min-height: 44px;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    font: inherit;
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field__input::placeholder {
    color: #98a2b3;
}

.auth-field__input:focus {
    outline: none;
    border-bottom-color: var(--auth-dark);
    box-shadow: 0 1px 0 0 var(--auth-dark);
}

.auth-split__submit {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--auth-dark);
    color: #ffffff;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.auth-split__submit:hover {
    background: #1f2937;
}

.auth-split__submit:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.auth-split__foot {
    margin: 28px 0 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--muted);
    text-align: center;
}

.auth-split__foot a {
    font-weight: 600;
    text-decoration: none;
}

.auth-split__foot a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-split__panel--tall {
    padding-top: clamp(24px, 4vh, 48px);
    padding-bottom: clamp(32px, 6vh, 56px);
}

.auth-split__panel--tall .auth-split__form {
    gap: 20px;
    margin-top: clamp(24px, 4vh, 32px);
}

.auth-consent {
    margin-top: 4px;
}

.auth-consent__option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f9fafb;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.auth-consent__option:hover {
    border-color: #98a2b3;
    background: #ffffff;
}

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

.auth-consent__mark {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1.5px solid #98a2b3;
    border-radius: 6px;
    background: #ffffff;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.auth-consent__mark::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: center / 12px 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2L6.4 11.1L12.5 4.9' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.auth-consent__input:checked + .auth-consent__mark {
    border-color: var(--auth-dark);
    background: var(--auth-dark);
}

.auth-consent__input:checked + .auth-consent__mark::after {
    opacity: 1;
    transform: scale(1);
}

.auth-consent__input:focus-visible + .auth-consent__mark {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.auth-consent__option:has(.auth-consent__input:checked) {
    border-color: var(--auth-dark);
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.06);
}

.auth-consent__copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.auth-consent__title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
    color: #344054;
}

.auth-consent__desc {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--muted);
}

.auth-split__action {
    margin: 20px 0 0;
}

.auth-split__submit--link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.auth-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.auth-split__visual {
    position: relative;
    display: flex;
    align-items: stretch;
    padding: clamp(16px, 3vw, 32px) clamp(16px, 3vw, 32px) clamp(16px, 3vw, 32px) 0;
    background: #ffffff;
}

.auth-split__visual-frame {
    position: relative;
    flex: 1 1 auto;
    min-height: 100%;
    overflow: hidden;
    border-radius: clamp(48px, 8vw, 80px) 0 clamp(48px, 8vw, 80px) 0;
    background: #d6ddd8;
}

.auth-split__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.auth-split__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .auth-split__slide {
        transition: none;
    }
}

.auth-split__slide-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.auth-split__slide-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(24px, 4vw, 40px);
    background: linear-gradient(180deg, rgba(16, 24, 40, 0.18) 0%, rgba(16, 24, 40, 0.08) 35%, rgba(16, 24, 40, 0.72) 100%);
    color: #ffffff;
}

.auth-split__visual-logo {
    display: inline-flex;
    width: fit-content;
}

.auth-split__visual-logo img {
    display: block;
    width: clamp(120px, 16vw, 148px);
    height: auto;
}

.auth-split__quote {
    margin: auto 0 0;
    max-width: 34rem;
}

.auth-split__quote p {
    margin: 0;
    font-size: clamp(1.125rem, 2.2vw, 1.5rem);
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: -0.01em;
}

.auth-split__quote-meta {
    display: grid;
    gap: 4px;
    margin-top: 20px;
}

.auth-split__quote-name {
    font-style: normal;
    font-size: 1rem;
    font-weight: 600;
}

.auth-split__quote-role {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.78);
}

.auth-split__nav {
    position: absolute;
    right: clamp(20px, 3vw, 32px);
    bottom: clamp(20px, 3vw, 32px);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.auth-split__nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-split__nav-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.7);
}

.auth-split__nav-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

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

    .auth-split__visual {
        order: -1;
        min-height: clamp(280px, 42vh, 420px);
        padding: clamp(16px, 4vw, 24px);
    }

    .auth-split__visual-frame {
        border-radius: clamp(32px, 8vw, 48px);
    }

    .auth-split__main {
        min-height: auto;
        padding-top: 0;
    }

    .auth-split__panel {
        padding-top: clamp(24px, 4vh, 40px);
        padding-bottom: clamp(40px, 8vh, 64px);
    }
}

/* ── Legacy centered auth pages (register, forgot, reset) ── */

.auth-page {
    width: min(560px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 80px;
}

.auth-back {
    display: inline-flex;
    margin-bottom: 28px;
    font-weight: 700;
    text-decoration: none;
}

.auth-card {
    padding: clamp(28px, 6vw, 44px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(27, 67, 50, 0.10);
}

.auth-eyebrow {
    margin: 0 0 10px;
    color: var(--green);
    font-weight: 800;
    letter-spacing: 0;
}

.auth-card h1 {
    margin: 0;
    color: var(--green);
    font-size: clamp(2.25rem, 8vw, 4.25rem);
    line-height: 0.95;
}

.auth-copy,
.auth-foot {
    color: var(--muted);
}

.auth-card form {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.auth-card label {
    display: grid;
    gap: 8px;
    font-weight: 700;
    color: #2a3931;
}

.auth-card input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.auth-check input {
    width: 18px;
    min-height: 18px;
}

.auth-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.auth-card button {
    min-height: 52px;
    border: 0;
    border-radius: 6px;
    background: var(--green);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.auth-action {
    margin: 18px 0 0;
}

.auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 6px;
    background: var(--green);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.auth-alert,
.auth-success {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-radius: 6px;
}

.auth-alert {
    background: #fff3f0;
    color: var(--danger);
}

.auth-success {
    background: var(--soft);
    color: var(--green);
}
