/* V2 로그인 페이지 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; }

/* ================================ */
/* 랜딩 레이아웃                    */
/* ================================ */
.v2-landing {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.v2-landing-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
}

.v2-landing-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10,15,30,0.85) 0%, rgba(15,25,50,0.75) 50%, rgba(20,30,60,0.7) 100%);
    z-index: 1;
}

.v2-landing-bg iframe {
    position: absolute;
    top: 50%; left: 50%;
    width: 180%; height: 180%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.v2-landing-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    width: 100%;
    height: calc(100% - 48px);
    padding: 0 60px;
    max-width: 1280px;
    margin: 0 auto;
}

/* ── 좌측: 서비스 소개 ── */
.v2-landing-hero {
    flex: 1;
    max-width: 560px;
    color: #fff;
}

.v2-hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(59,130,246,0.2);
    border: 1px solid rgba(59,130,246,0.4);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #93c5fd;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.v2-hero-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.v2-hero-highlight {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v2-hero-desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
}

.v2-hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 36px;
}

.v2-hero-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    transition: background 0.2s;
}

.v2-hero-feature:hover {
    background: rgba(255,255,255,0.1);
}

.v2-hero-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59,130,246,0.15);
    border-radius: 10px;
    flex-shrink: 0;
    color: #93c5fd;
}

.v2-hero-feature strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.v2-hero-feature span {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

/* 지도 바로보기 버튼 */
.v2-guest-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    backdrop-filter: blur(4px);
}

.v2-guest-btn:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-1px);
}

.v2-guest-btn:active { transform: translateY(0); }

.v2-guest-btn svg { opacity: 0.8; }

.v2-guest-btn-sub {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    margin-left: 4px;
}

/* ── 우측: 로그인 카드 ── */
.v2-landing-login {
    flex-shrink: 0;
    width: 380px;
}

.v2-login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.v2-login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.v2-login-logo img {
    height: 40px;
}

.v2-login-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 24px;
}

.v2-login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.v2-form-group { position: relative; }

.v2-form-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.v2-form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.v2-form-input::placeholder { color: #aaa; }

.v2-form-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    margin: 2px 0;
}

.v2-form-checkbox input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #3b82f6;
}

.v2-login-button {
    width: 100%;
    height: 46px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 2px;
}

.v2-login-button:hover { background: #2563eb; }
.v2-login-button:active { background: #1d4ed8; }
.v2-login-button:disabled { background: #93c5fd; cursor: not-allowed; }

.v2-login-message {
    min-height: 18px;
    font-size: 13px;
    text-align: center;
    padding: 2px 0;
}

.v2-login-message.error { color: #ef4444; }
.v2-login-message.success { color: #3b82f6; }

.v2-login-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.v2-login-link {
    font-size: 13px;
    color: #666;
    text-decoration: none;
}

.v2-login-link:hover { color: #3b82f6; }

/* ── 하단 ── */
.v2-landing-footer {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    z-index: 10;
    padding: 10px 16px 12px;
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    background: linear-gradient(to top, rgba(10, 15, 30, 0.55), rgba(10, 15, 30, 0));
}

.v2-footer-sep {
    margin: 0 8px;
    opacity: 0.4;
}

.v2-landing-footer-row {
    display: block;
    line-height: 1.7;
}
.v2-landing-footer-row + .v2-landing-footer-row {
    margin-top: 2px;
}
.v2-landing-footer-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color .15s;
}
.v2-landing-footer-link:hover {
    color: rgba(255, 255, 255, 0.95);
}
.v2-landing-footer-emphasis {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
}

/* ── 반응형 ── */
@media (max-width: 960px) {
    .v2-landing-content {
        flex-direction: column;
        gap: 32px;
        padding: 40px 24px;
        justify-content: flex-start;
        overflow-y: auto;
    }
    .v2-landing-hero { max-width: 100%; text-align: center; }
    .v2-hero-title { font-size: 28px; }
    .v2-hero-features { grid-template-columns: 1fr; }
    .v2-landing-login { width: 100%; max-width: 380px; }
    .v2-guest-btn { width: 100%; justify-content: center; }
}

/* ================================ */
/* V2 회원가입 / 찾기 공통 스타일 */
/* ================================ */

/* 회원가입/찾기 페이지 레이아웃 (login.jsp와 다른 구조) */
.v2-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.v2-login-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
}

.v2-login-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10,15,30,0.85) 0%, rgba(15,25,50,0.75) 50%, rgba(20,30,60,0.7) 100%);
    z-index: 1;
}

.v2-login-bg iframe {
    position: absolute;
    top: 50%; left: 50%;
    width: 180%; height: 180%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.v2-login-container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: calc(100% - 60px);
}

.v2-footer {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    z-index: 10;
    padding: 12px 0;
    text-align: center;
}

.v2-footer ul { list-style: none; }

.v2-footer li {
    display: inline;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 8px;
}

.v2-auth-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    padding: 40px 36px;
    width: 500px;
    max-width: 92vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.v2-auth-card::-webkit-scrollbar { width: 6px; }
.v2-auth-card::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

.v2-auth-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.v2-auth-subtitle {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 28px;
}

.v2-auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.v2-auth-label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
    display: block;
}

.v2-auth-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.v2-auth-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.v2-auth-input::placeholder { color: #aaa; }

.v2-auth-input.error { border-color: #ef4444; }
.v2-auth-input.success { border-color: #10b981; }

.v2-input-group {
    position: relative;
}

.v2-input-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.v2-input-row .v2-auth-input { flex: 1; }

.v2-btn-check {
    height: 44px;
    padding: 0 16px;
    background: #f1f5f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.v2-btn-check:hover { background: #e2e8f0; }

.v2-input-hint {
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}

.v2-input-hint.error { color: #ef4444; }
.v2-input-hint.success { color: #10b981; }

.v2-auth-button {
    width: 100%;
    height: 48px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.v2-auth-button:hover { background: #2563eb; }
.v2-auth-button:disabled { background: #93c5fd; cursor: not-allowed; }

.v2-auth-button.secondary {
    background: #64748b;
}

.v2-auth-button.secondary:hover { background: #475569; }

.v2-auth-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.v2-auth-link {
    font-size: 13px;
    color: #666;
    text-decoration: none;
}

.v2-auth-link:hover { color: #3b82f6; }

.v2-auth-message {
    min-height: 20px;
    font-size: 13px;
    text-align: center;
    padding: 4px 0;
}

.v2-auth-message.error { color: #ef4444; }
.v2-auth-message.success { color: #3b82f6; }

/* 회원가입 약관 */
.v2-terms-section {
    margin-bottom: 16px;
}

.v2-terms-header {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.v2-terms-box {
    width: 100%;
    height: 150px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12px;
    color: #555;
    line-height: 1.6;
    overflow-y: auto;
    background: #f8fafc;
    margin-bottom: 8px;
}

.v2-terms-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

.v2-terms-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

.v2-terms-check .required { color: #ef4444; font-weight: 600; }

.v2-terms-allcheck {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 16px;
}

.v2-terms-allcheck input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

/* 회원가입 스텝 인디케이터 */
.v2-step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 28px;
}

.v2-step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v2-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.v2-step.active .v2-step-num {
    background: #3b82f6;
    color: #fff;
}

.v2-step.done .v2-step-num {
    background: #10b981;
    color: #fff;
}

.v2-step-text {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.v2-step.active .v2-step-text { color: #3b82f6; }
.v2-step.done .v2-step-text { color: #10b981; }

.v2-step-line {
    width: 40px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 8px;
}

.v2-step-line.done { background: #10b981; }

/* 결과 표시 */
.v2-result-box {
    text-align: center;
    padding: 24px 0;
}

.v2-result-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.v2-result-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.v2-result-text {
    font-size: 15px;
    color: #555;
    margin-bottom: 4px;
}

.v2-result-highlight {
    font-size: 20px;
    font-weight: 700;
    color: #3b82f6;
    padding: 12px 24px;
    background: #eff6ff;
    border-radius: 8px;
    display: inline-block;
    margin: 12px 0;
    letter-spacing: 2px;
}

.v2-btn-group {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.v2-btn-group .v2-auth-button { flex: 1; }
