/* 전체 배경: 구매 페이지 톤 유지 */
.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-card {
    position: relative;
    background-color: #ffffff;
    width: 100%;
    max-width: 480px;
    padding: 3rem 2.5rem;
    border-radius: 2rem;
    border: 1px solid #eef2f6;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.03), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}

/* 탭 컨테이너 */
.tab-container {
    display: flex;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 2rem;
}

/* 탭 버튼 */
.tab-btn {
    flex: 1;
    padding-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.025em;
}

.tab-btn:hover {
    color: #4b5563;
}

.tab-btn.active {
    border-bottom-color: #e7542e;
    color: #e7542e;
}

/* 폼 */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 폼 설명 */
.form-desc {
    text-align: center;
    margin-bottom: 0.5rem;
}

.form-desc p {
    font-size: 0.875rem;
    color: #64748b;
}

/* 입력창 내부 아이콘 스타일 */
.input-wrapper {
    position: relative;
    margin-top: 0.625rem;
}
.input-icon {
    position: absolute;
    left: 1.125rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.125rem;
    height: 1.125rem;
    color: #94a3b8; /* 슬레이트 400 */
    stroke-width: 2px;
}
.input-box-enhanced {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem; /* 여백 확장 */
    background-color: #fbfcfd;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.input-box-enhanced:focus {
    border-color: #e7542e;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(231, 84, 46, 0.08);
}

.form-label {
    font-weight: 700;
    color: #334155;
    font-size: 0.875rem;
    margin-left: 0.25rem;
}

/* [수정] 오렌지 버튼: 클래스명 일치 및 스타일 강화 */
.btn-login-orange {
    width: 100%;
    padding: 1.125rem;
    background-color: #e7542e;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.125rem;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(231, 84, 46, 0.2);
}
.btn-login-orange:hover {
    background-color: #cf4622;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(231, 84, 46, 0.3);
}
.btn-login-orange:active {
    transform: scale(0.98);
}

/* 하단 링크 정렬 */
.auth-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.auth-links a {
    color: #94a3b8;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}
.auth-links a:hover {
    color: #64748b;
    text-decoration: underline;
}

/* --- 주차장 선택 영역 디자인 --- */
#selected-parking-list {
    transition: all 0.3s ease;
    border: 2px dashed #f1f5f9;
}

/* 선택된 주차장 칩(Chip) */
.parking-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fffaf9; /* 연한 주황 배경 */
    border: 1px solid #fbdad0;
    color: #e7542e;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    animation: chipIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 4px rgba(231, 84, 46, 0.05);
}

.parking-chip button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #fbdad0;
    border-radius: 50%;
    color: #e7542e;
    font-size: 14px;
    transition: all 0.2s;
}

.parking-chip button:hover {
    background: #e7542e;
    color: white;
}

/* --- 모달 내부 검색 결과 디자인 --- */
.search-item {
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-item:hover {
    border-color: #e7542e;
    background: #fffaf9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 84, 46, 0.08);
}

.search-item .item-name {
    font-weight: 700;
    color: #334155;
}

.search-item .item-address {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

/* 애니메이션 */
@keyframes chipIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content {
    border: none;
    overflow: hidden;
}

/* 검색 결과 카드 (이미지 스타일 재현) */
.parking-search-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.parking-search-card:hover {
    border-color: #e7542e;
    background-color: #fffaf9;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(231, 84, 46, 0.08);
}

.parking-search-card .thumb {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #94a3b8;
    margin-right: 1rem;
}

/* 페이지네이션 버튼 */
.page-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s;
}

.page-btn:hover { background: #f1f5f9; }
.page-btn.active {
    background: #e7542e;
    color: white;
}

/* 유틸리티 */
.hidden {
    display: none;
}

/* --- 비밀번호 변경 모달 --- */
.pw-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    padding: 1rem;
}

.pw-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pw-modal-container {
    background: #ffffff;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.2);
    word-break: keep-all;
    transform: scale(0.96);
    transition: transform 0.2s;
    overflow: hidden;
}

.pw-modal-overlay.active .pw-modal-container {
    transform: scale(1);
}

.pw-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.75rem 0;
}

.pw-modal-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
}

.pw-modal-close {
    width: 2rem;
    height: 2rem;
    border: none;
    background: #f1f5f9;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: background 0.15s;
    flex-shrink: 0;
}

.pw-modal-close:hover {
    background: #e2e8f0;
}

.pw-modal-close svg {
    width: 1rem;
    height: 1rem;
}

.pw-modal-body {
    padding: 1.25rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pw-modal-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    text-align: center;
}

.pw-error {
    font-size: 0.8rem;
    color: #ef4444;
    min-height: 1rem;
    margin: -0.5rem 0 0;
}

@media (max-width: 768px) {

}

@media (max-width: 480px) {
    .auth-card { padding: 20px 10px; }

    .input-box-enhanced { padding: 10px 20px 10px 40px; border-radius: 0.75rem; }

    .btn-login-orange {padding: 10px 20px;font-size: 1rem;}
}