.auth-page {
    min-height: calc(100dvh - 300px);
    display: grid;
    place-items: center;
    padding: clamp(24px, 6dvw, 64px) 20px;
}

.auth-panel {
    width: min(100%, 420px);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: clamp(24px, 6dvw, 36px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.auth-title {
    margin-bottom: 24px;
}

.auth-title h1 {
    margin: 0 0 8px;
    font-size: clamp(1.45rem, 5dvw, 1.85rem);
    font-weight: 800;
    color: #111827;
}

.auth-title p {
    font-size: clamp(0.875rem, 3.4dvw, 0.95rem);
    color: #6b7280;
}

.auth-field {
    margin-bottom: 14px;
}

.auth-field label {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-size: clamp(0.82rem, 3.2dvw, 0.9rem);
    font-weight: 700;
}

.auth-field input {
    width: 100%;
    height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0 14px;
    font-size: 1rem;
}

.auth-actions {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-btn {
    width: 100%;
    height: 48px;
    border-radius: 6px;
    background: var(--main-color);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 800;
}

.auth-social {
    margin-top: 22px;
}

.auth-social-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: #6b7280;
    font-size: 0.86rem;
    font-weight: 800;
}

.auth-social-title::before,
.auth-social-title::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #e5e7eb;
}

.auth-social-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.auth-social-btn {
    height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    font-size: 0.82rem;
    font-weight: 900;
}

.auth-social-btn.kakao {
    background: #fee500;
    border-color: #fee500;
}

.auth-social-btn.naver {
    background: #03c75a;
    border-color: #03c75a;
    color: #fff;
}

.auth-social-btn.apple {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.auth-terms {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.auth-terms label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 700;
}

@media screen and (max-width: 420px) {
    .auth-social-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.auth-panel.signup {
    width: min(100%, 632px);
}

.auth-input-with-btn {
    display: flex;
    gap: 8px;
}

.auth-input-with-btn input {
    flex: 1;
    min-width: 0;
}

.auth-input-with-btn .auth-side-btn {
    flex-shrink: 0;
    height: 46px;
    padding: 0 clamp(10px, 3vw, 16px);
    border: 1px solid var(--main-color);
    border-radius: 6px;
    background: #fff;
    color: var(--main-color);
    font-size: clamp(0.78rem, 3vw, 0.88rem);
    font-weight: 800;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.auth-input-with-btn .auth-side-btn:hover {
    background: var(--main-color);
    color: #fff;
}

.auth-input-with-btn .auth-side-btn:disabled {
    border-color: #d1d5db;
    color: #9ca3af;
    background: #f3f4f6;
    cursor: not-allowed;
}

.auth-pw-wrap {
    position: relative;
}

.auth-pw-wrap input {
    padding-right: 44px;
}

.auth-pw-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #9ca3af;
    font-size: 18px;
    transition: color 0.15s;
}

.auth-pw-toggle:hover {
    color: var(--main-color);
}

.auth-input-msg {
    display: none;
    margin-top: 6px;
    font-size: clamp(0.72rem, 2.8vw, 0.8rem);
    font-weight: 700;
}

.auth-input-msg.is-active {
    display: block;
}

.auth-input-msg.is-error {
    color: #dc2626;
}

.auth-input-msg.is-success {
    color: #16a34a;
}

.auth-verify-wrap {
    position: relative;
}

.auth-verify-wrap .auth-timer {
    position: absolute;
    top: 50%;
    right: 110px;
    transform: translateY(-50%);
    color: #dc2626;
    font-size: 0.86rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.auth-field.is-hide {
    display: none;
}

.auth-terms {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.auth-terms-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.auth-terms-row.is-all {
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.auth-terms-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: clamp(0.82rem, 3vw, 0.9rem);
    font-weight: 700;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.auth-terms-row.is-all label {
    font-weight: 800;
    color: #111827;
    font-size: clamp(0.86rem, 3.2vw, 0.94rem);
}

.auth-terms-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--main-color);
    cursor: pointer;
}

.auth-terms-link {
    flex-shrink: 0;
    background: transparent;
    color: #6b7280;
    font-size: clamp(0.72rem, 2.8vw, 0.8rem);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s;
}

.auth-terms-link:hover {
    color: var(--main-color);
}

.auth-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 3vw, 18px);
    margin-top: 18px;
    flex-wrap: wrap;
}

.auth-help a {
    color: #6b7280;
    font-size: clamp(0.74rem, 2.8vw, 0.82rem);
    font-weight: 700;
    transition: color 0.15s;
}

.auth-help a+a {
    position: relative;
    padding-left: clamp(10px, 3vw, 18px);
}

.auth-help a+a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background: #d1d5db;
}

.auth-help a:hover {
    color: var(--main-color);
}

@media screen and (max-width: 420px) {
    .auth-verify-wrap .auth-timer {
        right: 96px;
    }
}