/* ══════════════════════════════════════════
   회원가입 — Soft & Feminine Design
   (calendar.css 디자인 언어 통일)
   ══════════════════════════════════════════ */

:root {
    --bg: #faf8f5;
    --card: #ffffff;
    --text: #3a3a3a;
    --text-light: #999;
    --accent: #d4a373;
    --accent-light: #f5e6d3;
    --accent-hover: #c4935f;
    --border: #f0ebe4;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 40px rgba(180,160,130,0.13);
    --danger: #e07474;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 2rem 1rem;
    -webkit-font-smoothing: antialiased;
}

/* —— 배경 장식 —— */
body::before {
    content: '';
    position: fixed;
    top: -30%; right: -15%;
    width: 550px; height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,163,115,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: '';
    position: fixed;
    bottom: -25%; left: -10%;
    width: 450px; height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,230,211,0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* —— 인증 박스 —— */
.auth-box {
    background: var(--card);
    padding: 2.5em;
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 520px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1.5px solid var(--border);
}
.auth-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-light), var(--accent), var(--accent-light));
}

h2 {
    color: var(--text);
    text-align: center;
    margin-bottom: 1.5em;
    font-weight: 800;
    font-size: 1.4em;
    letter-spacing: -0.03em;
}

/* —— 폼 그리드 —— */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3em 1em;
}
.form-group { margin-bottom: 1.2em; }
.full-width { grid-column: span 2; }

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.45em;
    color: var(--accent-hover);
    font-size: 0.84em;
    letter-spacing: 0.01em;
}
.form-group input {
    width: 100%;
    padding: 0.85em 1em;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95em;
    font-family: inherit;
    transition: all 0.25s ease;
    background: var(--bg);
    color: var(--text);
}
.form-group input::placeholder {
    color: #ccc;
}
.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212,163,115,0.15);
    background: #fff;
}
.form-group input[type="file"] {
    padding: 0.55em 0.8em;
    font-size: 0.85em;
    cursor: pointer;
}
.form-group input[type="file"]::file-selector-button {
    background: var(--accent-light);
    color: var(--accent-hover);
    border: none;
    padding: 0.4em 0.9em;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.88em;
    font-family: inherit;
    cursor: pointer;
    margin-right: 0.6em;
    transition: all 0.2s ease;
}
.form-group input[type="file"]::file-selector-button:hover {
    background: var(--accent);
    color: #fff;
}
.input-readonly {
    background: #f8f6f2 !important;
    color: var(--text-light) !important;
    cursor: pointer;
}

/* —— 주소 검색 버튼 —— */
.btn-search {
    padding: 0.8em 1.1em;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.88em;
    font-family: inherit;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(212,163,115,0.2);
}
.btn-search:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(212,163,115,0.3);
}

/* —— 가입 버튼 —— */
.btn-submit {
    width: 100%;
    padding: 1em;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 1.05em;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 1.2em;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 16px rgba(212,163,115,0.3);
}
.btn-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212,163,115,0.4);
}
.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(212,163,115,0.25);
}

/* —— 로그인 링크 —— */
.link-text {
    display: block;
    text-align: center;
    margin-top: 1.8em;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.88em;
    font-weight: 500;
    transition: color 0.25s ease;
}
.link-text:hover {
    color: var(--accent);
}

/* —— 에러 플래시 —— */
.flash {
    color: var(--danger);
    font-size: 0.88em;
    margin-bottom: 1.2em;
    text-align: center;
    font-weight: 600;
    padding: 0.8em 1em;
    background: #fef5f5;
    border-radius: var(--radius-sm);
    border: 1.5px solid #fde0e0;
}

/* —— 도움말 —— */
.help-text {
    font-size: 0.76em;
    color: var(--danger);
    margin-top: 0.35em;
    display: block;
    font-weight: 600;
    line-height: 1.4;
}

/* —— 배송 사진 박스 —— */
.delivery-photo-box {
    background: var(--bg);
    padding: 1em 1.2em;
    border-radius: var(--radius-sm);
    border: 1.5px dashed var(--border);
}
.delivery-photo-box label {
    color: var(--accent-hover) !important;
    font-weight: 700 !important;
}

/* ══════════════════════════════════════════
   반응형
   ══════════════════════════════════════════ */

/* 태블릿 */
@media (max-width: 768px) {
    body { padding: 1.5rem 0.8rem; }
    .auth-box {
        padding: 2em 1.8em;
        max-width: 480px;
        border-radius: 18px;
    }
    h2 { font-size: 1.3em; }
}

/* 스마트폰 */
@media (max-width: 480px) {
    body {
        padding: 1em 0.5em;
        align-items: flex-start;
    }
    body::before, body::after {
        display: none;
    }
    .auth-box {
        padding: 1.6em 1.2em;
        border-radius: 16px;
        max-width: 100%;
        box-shadow: 0 4px 24px rgba(180,160,130,0.1);
    }
    h2 {
        font-size: 1.15em;
        margin-bottom: 1.2em;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .full-width { grid-column: span 1; }
    .form-group {
        margin-bottom: 1em;
    }
    .form-group label {
        font-size: 0.82em;
        margin-bottom: 0.35em;
    }
    .form-group input {
        padding: 0.75em 0.9em;
        font-size: 0.92em;
        border-radius: 8px;
    }
    .btn-search {
        padding: 0.7em 0.9em;
        font-size: 0.84em;
        border-radius: 20px;
    }
    .btn-submit {
        padding: 0.9em;
        font-size: 1em;
        border-radius: 20px;
        margin-top: 0.8em;
    }
    .delivery-photo-box {
        padding: 0.8em 1em;
    }
    .help-text {
        font-size: 0.72em;
    }
    .link-text {
        margin-top: 1.4em;
        font-size: 0.84em;
    }
    .flash {
        font-size: 0.84em;
        padding: 0.7em 0.9em;
    }
}

/* 아주 작은 화면 */
@media (max-width: 360px) {
    body { padding: 0.6em 0.4em; }
    .auth-box {
        padding: 1.4em 1em;
        border-radius: 14px;
    }
    h2 {
        font-size: 1.05em;
        margin-bottom: 1em;
    }
    .form-group input {
        padding: 0.65em 0.8em;
        font-size: 0.9em;
    }
    .btn-submit {
        padding: 0.85em;
        font-size: 0.95em;
        border-radius: 18px;
    }
    .link-text { font-size: 0.8em; }
}