/* 인증 페이지 및 마이페이지 스타일 - 삼복 명품 셀렉트 */

.auth-section {
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: var(--bg-light);
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-box {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(21, 34, 30, 0.06);
    border: 1px solid var(--border-color);
}

.auth-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.auth-subtitle {
    font-size: 14px;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 26px;
}

.auth-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    background: white;
    color: var(--text-dark);
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 95, 79, 0.12);
}

.form-control::placeholder {
    color: #94a3b8;
    font-size: 14px;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.auth-form .form-group:last-of-type {
    margin-bottom: 0;
}

.auth-submit-btn {
    width: 100%;
    margin-top: 20px;
    background: var(--primary-color);
    color: #fff;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(44, 95, 79, 0.2);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(44, 95, 79, 0.3);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-links p {
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    flex: 1;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* ========================================================
   마이페이지 공통 레이아웃
   ======================================================== */

.mypage-section {
    padding: 40px 20px;
    background: var(--bg-light);
    min-height: calc(100vh - 400px);
}

.mypage-container {
    max-width: 1040px;
    margin: 0 auto;
}

.mypage-header {
    background: white;
    padding: 28px 32px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 16px rgba(21, 34, 30, 0.05);
    border: 1px solid var(--border-color);
}

.mypage-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.mypage-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.mypage-content {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 25px;
    align-items: start;
}

.mypage-sidebar {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(21, 34, 30, 0.05);
    border: 1px solid var(--border-color);
}

.mypage-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mypage-menu li {
    margin-bottom: 6px;
}

.mypage-menu li:last-child {
    margin-bottom: 0;
}

.mypage-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mypage-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.mypage-menu a.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(44, 95, 79, 0.25);
}

.mypage-main {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(21, 34, 30, 0.05);
    border: 1px solid var(--border-color);
    min-height: 480px;
}

.mypage-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

/* 내 정보 */
.info-display {
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    min-width: 140px;
    color: var(--text-secondary);
}

.info-value {
    color: var(--text-dark);
    font-weight: 500;
    word-break: break-all;
}

/* 주문 내역 카드 */
.order-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 18px;
    background: white;
    transition: all 0.25s ease;
}

.order-card:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 4px 12px rgba(200, 169, 126, 0.12);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    gap: 10px;
}

.order-card-number {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-card-date {
    font-size: 13px;
    color: var(--text-muted);
}

.order-status-badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.order-card-items {
    margin-bottom: 14px;
}

.order-card-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.order-card-item:last-child {
    margin-bottom: 0;
}

.order-card-thumb {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #f0eee9;
}

.order-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.order-card-item-info {
    flex: 1;
    min-width: 0;
}

.order-card-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

.order-card-item-price {
    font-size: 13px;
    color: var(--text-muted);
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    gap: 10px;
}

.order-card-total-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.order-card-total-amount {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary-color);
    margin-left: 8px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 54px;
    margin-bottom: 16px;
    color: var(--gold-primary);
    opacity: 0.6;
}

.empty-state p {
    font-size: 15px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* 회원 탈퇴 스타일 */
.withdrawal-notice-box {
    background: #fff8f8;
    border: 1.5px solid #ffcdd2;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 20px;
}

.withdrawal-notice-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #c62828;
}

.withdrawal-notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.withdrawal-notice-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #555;
    line-height: 1.45;
}

.withdrawal-agree-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 14px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 20px;
    transition: all 0.2s;
    background: white;
}

.withdrawal-agree-label:hover {
    border-color: #e53935;
    background: #fffafa;
}

.withdrawal-btn {
    width: 100%;
    padding: 14px;
    background: white;
    color: #c62828;
    border: 2px solid #c62828;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.withdrawal-btn:hover {
    background: #c62828;
    color: white;
}

/* ========================================================
   모바일 최적화 미디어 쿼리
   ======================================================== */
@media (max-width: 768px) {
    .auth-section {
        padding: 24px 14px 40px;
    }

    .auth-box {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .auth-title {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .auth-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
        line-height: 1.45;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-control {
        height: 46px;
        padding: 10px 14px;
        font-size: 14px;
    }

    .checkbox-label {
        font-size: 12.5px;
        gap: 8px;
        line-height: 1.4;
    }

    .auth-submit-btn {
        padding: 13px;
        font-size: 15px;
        margin-top: 14px;
    }

    .auth-links {
        margin-top: 20px;
        padding-top: 16px;
        font-size: 13px;
    }

    .mypage-section {
        padding: 16px 12px 36px;
    }

    .mypage-header {
        padding: 18px 16px;
        margin-bottom: 14px;
        border-radius: 10px;
    }

    .mypage-header h2 {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .mypage-header p {
        font-size: 12px;
    }

    .mypage-content {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* 모바일: 탭 메뉴 3열 균등 분할 네비게이션 */
    .mypage-sidebar {
        padding: 6px;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    }

    .mypage-menu {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .mypage-menu li {
        margin-bottom: 0;
    }

    .mypage-menu a {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 11px 4px;
        font-size: 13px;
        font-weight: 600;
        border-radius: 8px;
        text-align: center;
        white-space: nowrap;
    }

    .mypage-main {
        padding: 20px 14px;
        border-radius: 10px;
        min-height: auto;
    }

    .mypage-section-title {
        font-size: 17px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    /* 내 정보 모바일 */
    .info-row {
        flex-direction: column;
        gap: 4px;
        padding: 12px 0;
        font-size: 14px;
    }

    .info-label {
        min-width: unset;
        font-size: 12px;
        color: var(--text-muted);
    }

    .info-value {
        font-size: 14px;
    }

    /* 주문 내역 카드 모바일 */
    .order-card {
        padding: 14px;
        margin-bottom: 14px;
        border-radius: 8px;
    }

    .order-card-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .order-card-number {
        font-size: 13px;
        word-break: break-all;
    }

    .order-card-date {
        font-size: 11px;
    }

    .order-status-badge {
        padding: 4px 10px;
        font-size: 11px;
    }

    .order-card-thumb {
        width: 52px;
        height: 52px;
    }

    .order-card-item-name {
        font-size: 13px;
        line-height: 1.35;
    }

    .order-card-item-price {
        font-size: 12px;
    }

    .order-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-top: 12px;
    }

    .order-card-footer-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .order-card-total-amount {
        font-size: 16px;
    }

    .order-card-cancel-btn {
        width: 100%;
        padding: 10px;
        font-size: 13px;
    }

    /* 회원 탈퇴 모바일 */
    .withdrawal-notice-box {
        padding: 16px 12px;
        border-radius: 8px;
        margin-bottom: 16px;
    }

    .withdrawal-notice-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .withdrawal-notice-list li {
        font-size: 12px;
        gap: 8px;
    }

    .withdrawal-agree-label {
        padding: 12px;
        font-size: 12px;
        margin-bottom: 16px;
    }

    .withdrawal-btn {
        padding: 13px;
        font-size: 14px;
    }
}
