/* account.css */
body.page-account,
.page-account main,
.account-page {
    background: #ffffff;
}

.account-page .section-block {
    padding: 28px 0 90px;
}

.account-page .container {
    max-width: 640px;
}

body.page-register .account-page .container {
    max-width: 860px;
}

.account-card {
    display: grid;
    gap: 14px;
    padding: 28px 24px;
    border: 1px solid #e3e3e3;
    border-radius: 18px;
    background: #ffffff;
}

.account-card .eyebrow {
    margin: 0;
    color: #f7a600;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.account-card h1 {
    margin: 0;
    color: #111111;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
}

.account-card > p {
    margin: 0;
    color: #6f6f6f;
    font-size: 15px;
    line-height: 1.45;
}

.account-card form {
    display: grid;
    gap: 18px;
}

.account-card label {
    display: grid;
    gap: 6px;
}

.account-card label span {
    color: #4d4d4d;
    font-size: 14px;
    font-weight: 600;
}

.account-card input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #ffffff;
    color: #222222;
    font-size: 15px;
    padding: 0 12px;
}

.account-card input[type="file"] {
    padding: 13px 12px;
    cursor: pointer;
    line-height: 1;
}

.account-card input:focus {
    border-color: #f7a600;
    outline: none;
    box-shadow: 0 0 0 3px rgba(247, 166, 0, 0.16);
}

.account-card textarea,
.account-card select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #ffffff;
    color: #222222;
    font-size: 15px;
    padding: 12px;
}

.account-card textarea:focus,
.account-card select:focus {
    border-color: #f7a600;
    outline: none;
    box-shadow: 0 0 0 3px rgba(247, 166, 0, 0.16);
}

.account-card--register {
    gap: 18px;
}

.account-form__section {
    display: grid;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid #ededed;
}

.account-form__section:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.account-form__section-head {
    display: grid;
    gap: 6px;
}

.account-form__section-head h2 {
    margin: 0;
    color: #111111;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.account-form__section-head p {
    margin: 0;
    color: #6f6f6f;
    font-size: 14px;
    line-height: 1.5;
}

.account-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.account-form__field--full {
    grid-column: 1 / -1;
}

.account-address-search {
    display: grid;
    gap: 8px;
}

.account-address-search__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.account-address-search__button {
    min-width: 110px;
    min-height: 48px;
    border-radius: 10px;
}

.account-address-search__hint {
    margin: 0;
    color: #7b7b7b;
    font-size: 13px;
    line-height: 1.45;
}

.account-check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    padding: 12px 0;
}

label.account-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

label.account-check input[type="checkbox"] {
    flex-shrink: 0;
    width: 17px;
    min-width: 17px;
    height: 17px;
    min-height: 17px;
    margin: 0;
    padding: 0;
    border: 1.5px solid #c8c8c8;
    border-radius: 4px;
    background: #ffffff;
    accent-color: #0d5a4a;
    cursor: pointer;
}

label.account-check span {
    color: #3c332d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.account-card .btn {
    min-height: 48px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 2px;
}

.account-card__footer {
    margin-top: 2px;
    padding-top: 12px;
    border-top: 1px solid #ededed;
    color: #666666;
    font-size: 14px;
    line-height: 1.45;
}

.account-card__footer a {
    color: #111111;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.account-meta {
    display: grid;
    gap: 0.75rem;
}

.account-meta li,
.order-history__item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(217, 201, 180, 0.6);
}

.order-history {
    display: grid;
}

/* username duplicate check */
.username-check {
    display: grid;
    gap: 6px;
}

.username-check__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.username-check__button {
    min-width: 96px;
    min-height: 48px;
    border-radius: 10px;
    white-space: nowrap;
}

.username-check__hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    min-height: 18px;
}

.username-check__hint--success {
    color: #0d5a4a;
    font-weight: 600;
}

.username-check__hint--error {
    color: #b63d2b;
    font-weight: 600;
}

/* pending page */
.pending-card {
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
    gap: 24px;
}

.pending-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 8px auto 0;
    border-radius: 50%;
    background: #fffaf0;
    border: 1.5px solid #f7e0a0;
    color: #c88a00;
    animation: pending-pulse 2.4s ease-in-out infinite;
}

.pending-icon svg {
    width: 38px;
    height: 38px;
}

@keyframes pending-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.8; }
}

.pending-body {
    display: grid;
    gap: 10px;
}

.pending-desc {
    color: #6f6f6f;
    font-size: 15px;
    line-height: 1.7;
}

.pending-info {
    display: grid;
    gap: 0;
    border: 1px solid #ededed;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
}

.pending-info__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid #f0f0f0;
}

.pending-info__row:last-child {
    border-bottom: 0;
}

.pending-info__label {
    color: #888;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.pending-info__value {
    color: #222;
    font-size: 14px;
    font-weight: 500;
    text-align: right;
}

.pending-info__value a {
    color: #0d5a4a;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* 반려 상태 */
.pending-card--rejected .pending-body h1 {
    color: #b83232;
}

.pending-icon--rejected {
    background: #fff5f5;
    border-color: #f5c0c0;
    color: #b83232;
    animation: none;
}

.pending-rejection-reason {
    padding: 14px 18px;
    border: 1.5px solid #f5c0c0;
    border-radius: 12px;
    background: #fff5f5;
    text-align: left;
}

.pending-rejection-reason__label {
    margin: 0 0 6px;
    color: #b83232;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pending-rejection-reason__text {
    margin: 0;
    color: #5a1a1a;
    font-size: 14px;
    line-height: 1.7;
}

/* 재제출 페이지 */
.resubmit-reason-box {
    padding: 14px 18px;
    border: 1.5px solid #f5c0c0;
    border-radius: 12px;
    background: #fff5f5;
    margin-bottom: 8px;
}

.resubmit-reason-box__label {
    margin: 0 0 6px;
    color: #b83232;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.resubmit-reason-box__text {
    margin: 0;
    color: #5a1a1a;
    font-size: 14px;
    line-height: 1.7;
}

.account-fieldset {
    display: grid;
    gap: 14px;
    padding: 0;
    border: 0;
    margin: 0;
}

.account-fieldset legend {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e0d6;
    color: #444;
    font-size: 14px;
    font-weight: 700;
}

.resubmit-doc-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.resubmit-doc-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border: 1px solid #e0dbd4;
    border-radius: 8px;
    background: #faf8f4;
    font-size: 13px;
}

.resubmit-doc-list li span {
    flex: 1 1 auto;
    color: #333;
    word-break: break-all;
}

.resubmit-doc-list li a {
    flex-shrink: 0;
    color: #0d5a4a;
    font-weight: 700;
    font-size: 12px;
    text-decoration: underline;
}

/* 관리자 반려 폼 (admin.css에서 관리하지만 공통 참조용) */

@media (max-width: 767px) {
    .account-page .section-block {
        padding-top: 18px;
    }

    .account-card {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .account-card h1 {
        font-size: 30px;
    }

    .account-form__grid {
        grid-template-columns: 1fr;
    }

    .account-address-search__row {
        grid-template-columns: 1fr;
    }

    .username-check__row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .pending-card {
        text-align: center;
    }
}
