/* ===================================
   구룡쟁패 - 2차 비밀번호 초기화 페이지 (second-password.css)
   sub-page.css 라이트 테마 디자인 시스템 기반
   =================================== */

.spw-page {
    min-height: calc(100vh - var(--header-height) - var(--site-top-offset));
    background: #fff;
}

/* ─── 히어로 배너 ───────────────────────────── */

.spw-hero {
    margin-top: calc(var(--site-top-offset) + var(--header-height));
    position: relative;
    background: linear-gradient(135deg, #1a1510 0%, #0d0d0d 100%);
    overflow: hidden;
    border-bottom: 1px solid #e8e8e8;
}

.spw-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        url('/products/nd/images/bg_sub.png') center -20px / cover no-repeat;
    opacity: 1;
}

.spw-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

.spw-hero-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 72px 0 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.spw-hero-text {
    max-width: 520px;
}

.spw-hero-label {
    display: inline-block;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #DFCB96;
    background: rgba(223, 203, 150, 0.15);
    border: 1px solid rgba(223, 203, 150, 0.3);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.spw-hero-title {
    font-size: 40px;
    font-weight: 700;
    color: #f1f1f1;
    line-height: 1.2;
    margin-bottom: 18px;
}

.spw-hero-title em {
    font-style: normal;
    color: #DFCB96;
}

.spw-hero-desc {
    font-size: 17px;
    color: #C2C2C2;
    line-height: 1.8;
    word-break: keep-all;
}

/* ─── 스텝 섹션 ─────────────────────────────── */

.spw-steps-section {
    background: #fff;
    padding: 70px 20px;
}

.spw-steps-inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

.spw-steps-header {
    margin-bottom: 48px;
}

.spw-steps-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #c9a227;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.spw-steps-title {
    font-size: 30px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    text-align: left;
}

.spw-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.spw-step-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    padding: 40px 28px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.spw-step-number {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #c9a227;
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.spw-step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.07);
    border: 1px solid rgba(201, 162, 39, 0.2);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spw-step-icon::after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    background-color: #c9a227;
}

.spw-step-icon--exit::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M18.36 6.64a9 9 0 1 1-12.73 0'/%3E%3Cline x1='12' y1='2' x2='12' y2='12'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M18.36 6.64a9 9 0 1 1-12.73 0'/%3E%3Cline x1='12' y1='2' x2='12' y2='12'/%3E%3C/svg%3E");
}

.spw-step-icon--account::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.spw-step-icon--done::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpolyline points='20,6 9,17 4,12'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpolyline points='20,6 9,17 4,12'/%3E%3C/svg%3E");
}

.spw-step-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.4;
}

.spw-step-desc {
    font-size: 18px;
    color: #777;
    line-height: 24px;
    word-break: keep-all;
}

/* ─── 주의 사항 ─────────────────────────────── */

.spw-caution {
    max-width: var(--content-width);
    margin: 48px auto 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 32px 24px;
    background: #f6f1e6;
    border-radius: 12px;
    text-align: center;
}

.spw-caution-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.spw-caution-mark {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8b92e;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 36px;
    text-align: center;
}

.spw-caution-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.spw-caution-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: inline-block;
    text-align: left;
}

.spw-caution-list li {
    position: relative;
    padding-left: 14px;
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    word-break: keep-all;
}

.spw-caution-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #e8b92e;
}

/* ─── CTA 섹션 ──────────────────────────────── */

.spw-cta-section {
    padding: 90px 20px;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid #e8e8e8;
}

.spw-result {
    max-width: var(--content-width);
    margin: 0 auto 28px;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
}

.spw-result--alert {
    color: #a33b32;
}

.spw-cta-buttons {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
}

.spw-cta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.spw-cta-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    padding: 18px 0;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    letter-spacing: 0.5px;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.spw-cta-btn--primary {
    background: #c9a227;
}

.spw-cta-btn--secondary {
    background: #555555;
}

.spw-cta-btn:hover {
    opacity: 0.9;
}

.spw-cta-notice {
    margin-top: 14px;
    margin-bottom: 0;
    font-size: 16px;
    color: #999;
    text-align: center;
}

/* ─── 반응형 ─────────────────────────────────── */

@media (max-width: 1024px) {
    .spw-steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .spw-hero-inner { padding: 52px 0 44px; flex-direction: column; gap: 0; }
    .spw-hero-title { font-size: 28px; }
    .spw-steps-section { padding: 48px 20px; }
    .spw-steps-grid { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 480px) {
    .spw-hero-title { font-size: 24px; }
}
