/* 로그인/회원가입 전용 스타일 */

/* Login (Social) */
.auth-page {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 164px);
}

.auth-card {
    max-width: 460px;
    margin: 0 auto;
}

.auth-header h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-desc {
    font-size: 13px;
    color: #666;
}

.auth-card-wide {
    max-width: 560px;
}

.auth-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 14px;
    padding: 0;
}

.auth-step {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.auth-step.is-active {
    background: #111827;
    color: #fff;
}

.auth-step-panel {
    display: none;
}

.auth-step-panel.is-active {
    display: block;
}

.terms-box {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 12px;
    background: #fff;
}

.terms-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.terms-content {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    max-height: 140px;
    overflow: auto;
    padding-right: 6px;
}

.terms-divider {
    border: 0;
    border-top: 1px solid #f0f0f0;
    margin: 12px 0;
}

.check-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.check-list.check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
    user-select: none;
}

.check-item input {
    width: 16px;
    height: 16px;
}

.auth-actions {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.auth-actions .btn {
    flex: 1;
}

.auth-hint {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.social-btn.is-selected {
    outline: 2px solid rgba(17,24,39,0.35);
    outline-offset: 2px;
}

.auth-form {
    margin-top: 10px;
}

.form-row {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
}

.form-field {
    display: flex;
    gap: 8px;
}

.form-input {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 0 12px;
    font-size: 14px;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17,24,39,0.12);
}

.form-inline-btn {
    height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    flex: 0 0 auto;
}

.form-help {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

.cert-box {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.cert-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #374151;
}

.cert-row + .cert-row {
    margin-top: 6px;
}

.cert-label {
    color: #6b7280;
}

.cert-code {
    letter-spacing: 1px;
}

.cert-timer {
    font-variant-numeric: tabular-nums;
}

.cert-msg {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

.cert-msg.is-success {
    color: #1b5e20;
}

.cert-msg.is-danger {
    color: #c62828;
}

.auth-complete {
    margin-top: 12px;
    padding: 14px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.auth-complete__title {
    font-weight: 800;
    margin-bottom: 6px;
}

.auth-complete__desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.social-buttons {
    --social-btn-height: 52px;
    --social-btn-radius: 10px;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    position: relative;
    display: flex;
    align-items: center;
    height: var(--social-btn-height);
    padding: 0 44px;
    border-radius: var(--social-btn-radius);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: transform .08s ease, box-shadow .2s ease, background-color .2s ease;
}

.social-btn__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
}

.social-btn__icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.social-btn__icon img {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
}

.social-btn.kakao .social-btn__icon {
    color: #191919;
}

.social-btn.naver .social-btn__icon {
    color: #fff;
}

.social-btn.google .social-btn__icon {
    color: #4285F4;
}

.social-btn__text {
    width: 100%;
    font-size: 16px;
    text-align: center;
    line-height: 1;
}

.social-btn:hover {
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.social-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.social-btn.kakao {
    background: #FEE500;
    color: #191919;
}

.social-btn.naver {
    background: #03A94D;
    color: #fff;
}

.social-btn.google {
    background: #fff;
    color: #222;
    border: 1px solid #e5e7eb;
}

.auth-footer {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #777;
}

.auth-link {
    color: #777;
}

.auth-link:hover {
    color: #e53935;
    text-decoration: none;
}

.auth-divider {
    color: #c9cdd4;
}

@media (max-width: 768px) {
    .auth-page {
        min-height: calc(100vh - 156px);
        align-items: flex-start;
        padding-top: 18px;
    }

    .auth-card {
        max-width: 100%;
    }

    .auth-actions {
        flex-direction: column;
    }

    .form-field {
        flex-direction: column;
    }

    .form-inline-btn {
        width: 100%;
    }

    .check-list.check-grid {
        grid-template-columns: 1fr;
    }
}
