/* 전체 배경 (구매 페이지와 동일한 톤) */
.auth-wrapper {
    background-color: #f8fafc;
    min-height: calc(100vh - 160px); /* 헤더/푸터 제외 중앙 배치 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* 헤더 영역 */
.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #64748b;
    font-weight: 500;
}

/* 폼 영역 */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form-compact {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* 폼 그룹 */
.form-group {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* 소셜 버튼 컨테이너 */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* 구분선 (소셜 로그인용) */
.divider-line {
    display: flex;
    align-items: center;
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 2rem 0;
}

.divider-line::before,
.divider-line::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #f1f5f9;
}

.divider-line span {
    padding: 0 1rem;
}

/* [핵심] 네모난 박스 디자인 */
.auth-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 650px; /* 로그인 박스 적정 너비 */
    margin: 0 auto;
    padding: 3.5rem 2.5rem;
    border-radius: 15px; /* 구매 페이지와 같은 둥근 정도 */
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05); /* 은은한 입체감 */
    box-sizing: border-box;
}

/* 입력창 내부 아이콘 포함 스타일 */
.input-wrapper {
    position: relative;
    margin-top: 0.5rem;
}
.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.125rem;
    height: 1.125rem;
    color: #94a3b8;
}
.input-box-enhanced {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid #f1f5f9;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}
.input-box-enhanced:focus {
    border-color: #e7542e;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* 로그인 버튼 (구매 페이지 버튼과 통일) */
.btn-login-orange {
    width: 100%;
    padding: 1rem;
    background-color: #e7542e;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 1rem;
}
.btn-login-orange:hover {
    background-color: #cf4622;
}

/* 하단 링크 */
.auth-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}
.divider-dot {
    width: 3px;
    height: 3px;
    background-color: #cbd5e1;
    border-radius: 50%;
}
.register-link {
    color: #e7542e !important;
    font-weight: 700;
}

/* 하단 링크 (기존 auth-links에 추가 스타일) */
.auth-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

/* 소셜 버튼 공통 */
.btn-social {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}
.btn-social:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}
.btn-kakao {
    background-color: #FEE500;
    color: #3C1E1E;
}

/* 아이콘 색상 */
.icon-orange {
    color: #e7542e;
    stroke: #e7542e;
}

/* 텍스트 스타일 */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-3xl { font-size: 1.875rem; }
.font-black { font-weight: 900; }
.font-medium { font-weight: 500; }
.text-slate-900 { color: #0f172a; }
.text-slate-500 { color: #64748b; }

/* 여백 */
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.ml-1 { margin-left: 0.25rem; }

/* 레이아웃 */
.flex-col { flex-direction: column; }
.inline-flex { display: inline-flex; }

/* 아이콘 박스 */
.icon-box-orange {
    padding: 0.75rem;
    background-color: #fff7ed;
    border-radius: 1rem;
    display: inline-flex;
}

.icon-box-orange i {
    width: 2rem;
    height: 2rem;
    color: #e7542e;
}

/* 폼 그룹 간격 */
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }

/* 회원가입 링크 */
.register-link-orange {
    color: #e7542e;
    font-weight: 700;
}

.register-link-orange:hover {
    text-decoration: underline;
}

/* 모바일 */
@media (max-width: 480px) {
    .auth-card {max-width: 100%; padding: 30px 20px; border-radius: 8px;}
    .auth-header { margin: 1rem 0; }
    .auth-title {font-size: 18px;margin-bottom: 0.5rem;}

    .login-form { gap: 10px }
    .form-label { margin-bottom: 4px; }
    .input-box-enhanced { padding: 10px 20px 10px 40px; border-radius: 0.75rem; }

    .btn-login-orange {padding: 10px 20px;font-size: 1rem;}
    .btn-social {padding: 10px 20px;font-size: 1rem;}

    .divider-line { margin: 1rem 0; }

}