﻿/* ══════════════════════════════════════════════════════════════
   햇살드림 · register.css
   배포 경로: /myoffice/account/css/register.css
   컨셉: Cyber Neon Blue · 딥스페이스 (login.css 완전 통일)
   ══════════════════════════════════════════════════════════════ */

/* ─── 변수 (login.css 동일) ─── */
:root {
    --REG-bg: #020408;
    --REG-panel: rgba(3, 14, 28, 0.88);
    --REG-blue: #edb012;
    --REG-blue-bright: #f2c74d;
    --REG-blue-glow: rgba(237, 176, 18, 0.4);
    --REG-neon: #f1b14b;
    --REG-neon-glow: rgba(241, 177, 75, 0.3);
    --REG-white: #fdf2df;
    --REG-gray: #7a633a;
    --REG-border: rgba(237, 167, 18, 0.18);
    --REG-border-hi: rgba(237, 188, 18, 0.55);
    --REG-error: #ff4fa3;
    --REG-success: #f1b14b;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background: var(--REG-bg);
    color: var(--REG-white);
    font-family: 'Noto Sans KR', sans-serif;
}

/* ══════════════════════════
   BACKGROUND (login 동일)
   ══════════════════════════ */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.scanlines {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient( 0deg, transparent, transparent 2px, rgba(237,176,18,0.018) 2px, rgba(237,176,18,0.018) 4px );
}

.vignette {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.75) 100%);
}

/* ══════════════════════════
   LAYOUT
   ══════════════════════════ */
.wrapper {
    min-height: 100vh;
}

.REG-center {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 24px 60px;
    position: relative;
    z-index: 10;
}

@supports (height: 100dvh) {
    .REG-center {
        min-height: 100dvh;
    }
}

/* ══════════════════════════
   CARD (login과 동일 구조)
   ══════════════════════════ */
.REG-card {
    width: 100%;
    max-width: 480px;
    position: relative;
    padding: 40px 36px 32px;
    background: var(--REG-panel);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--REG-border);
    box-shadow: 0 0 0 1px rgba(237,167,18,0.06), 0 0 50px rgba(237,155,18,0.1), 0 0 100px rgba(186,124,14,0.05), inset 0 0 50px rgba(186,124,14,0.03);
    opacity: 0;
    animation: REGCardIn 0.8s 0.2s cubic-bezier(.16,1,.3,1) forwards;
}

@keyframes REGCardIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 코너 장식 (login 동일) */
.c-tl, .c-tr, .c-bl, .c-br {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--REG-blue);
    border-style: solid;
    opacity: 0.75;
}

.c-tl {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.c-tr {
    top: -1px;
    right: -1px;
    border-width: 2px 2px 0 0;
}

.c-bl {
    bottom: -1px;
    left: -1px;
    border-width: 0 0 2px 2px;
}

.c-br {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

/* 상단 네온 라인 */
.card-topline {
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--REG-blue), var(--REG-neon), var(--REG-blue), transparent);
    box-shadow: 0 0 14px var(--REG-blue-glow);
}

/* ══════════════════════════
   BRAND
   ══════════════════════════ */
.REG-brand {
    text-align: center;
    margin-bottom: 26px;
}

.REG-logo-img {
    width: 220px;
    max-width: 100%;
    filter: drop-shadow(0 0 16px rgba(237,176,18,0.7)) drop-shadow(0 0 40px rgba(237,176,18,0.35));
    animation: REGLogoFloat 3.5s ease-in-out infinite;
}

@keyframes REGLogoFloat {
    0%,100% {
        filter: drop-shadow(0 0 11px rgba(234,157,18,0.42)) drop-shadow(0 0 28px rgba(238,148,27,0.20));
        transform: translateY(0);
    }

    50% {
        filter: drop-shadow(0 0 18px rgba(234,157,18,0.68)) drop-shadow(0 0 44px rgba(238,148,27,0.36));
        transform: translateY(-3px);
    }
}

.REG-logo-fallback {
    display: none;
}

.REG-logo-main-text {
    font-family: 'Orbitron', monospace;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 10px;
    color: var(--REG-white);
    display: block;
    line-height: 1;
    text-shadow: 0 0 20px var(--REG-blue), 0 0 50px var(--REG-blue-glow);
    animation: REGGlowPulse 3s ease-in-out infinite;
}

/* ── 로고 무대: 마법진 광원 ── */
.REG-stage { position: relative; display: inline-block; line-height: 0; }
.REG-halo  { position: absolute; left: 50%; bottom: 0; width: 170%;
             /* 중심(SVG 높이의 80.3%)이 로고 밑동에 오도록 자기 높이의 19.7% 내림 */
             transform: translate(-50%, 40%); pointer-events: none; z-index: 0; opacity: .95; }
.REG-stage .REG-logo-img,
.REG-stage .REG-logo-fallback { position: relative; z-index: 1; }

.REG-logo-sub-text {
    font-family: 'Noto Sans KR', 'Source Sans Pro', sans-serif !important;
    font-size: 10px;
    letter-spacing: 7px;
    color: var(--REG-blue);
    display: block;
    margin-top: 6px;
}

@keyframes REGGlowPulse {
    0%,100% {
        text-shadow: 0 0 20px var(--REG-blue), 0 0 50px var(--REG-blue-glow);
    }

    50% {
        text-shadow: 0 0 35px var(--REG-blue-bright), 0 0 70px var(--REG-blue), 0 0 120px var(--REG-blue-glow);
    }
}

/* ══════════════════════════
   SECTION LABEL
   ══════════════════════════ */
.reg-section-label {
    font-family: 'Noto Sans KR', 'Source Sans Pro', sans-serif !important;
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--REG-blue);
    text-transform: uppercase;
    opacity: 0.7;
    margin: 16px 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .reg-section-label::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, var(--REG-border), transparent);
    }

/* ══════════════════════════
   TERMS
   ══════════════════════════ */
.terms-area {
    margin-bottom: 14px;
}

.terms-box {
    width: 100%;
    height: 110px;
    background: rgba(0,20,45,0.65);
    border: 1px solid var(--REG-border);
    border-radius: 3px;
    padding: 10px 12px;
    font-size: 11.5px;
    color: rgba(240,218,180,0.7);
    overflow-y: auto;
    white-space: pre-wrap;
    line-height: 1.65;
}

    .terms-box::-webkit-scrollbar {
        width: 4px;
    }

    .terms-box::-webkit-scrollbar-track {
        background: transparent;
    }

    .terms-box::-webkit-scrollbar-thumb {
        background: var(--REG-gray);
        border-radius: 2px;
    }

.terms-check {
    margin-top: 8px;
    display: flex;
    align-items: center;
}

    .terms-check label {
        color: var(--REG-white) !important;
        font-family: 'Noto Sans KR', 'Source Sans Pro', sans-serif !important;
        font-size: 10px !important;
        letter-spacing: 1.5px;
        font-weight: 400 !important;
        cursor: pointer;
        user-select: none;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .terms-check input[type="checkbox"] {
        width: 14px;
        height: 14px;
        accent-color: var(--REG-blue);
        cursor: pointer;
        flex-shrink: 0;
    }

/* ══════════════════════════
   FORM GROUPS / FIELDS
   ══════════════════════════ */
.form-group {
    margin-bottom: 11px;
}

.field-label {
    font-family: 'Noto Sans KR', 'Source Sans Pro', sans-serif !important;
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--REG-blue);
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
    opacity: 0.75;
}

.inputbox {
    width: 100%;
}

.inputstyle,
.select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: rgba(0,20,45,0.65);
    border: 1px solid var(--REG-border);
    border-radius: 3px;
    font-family: 'Noto Sans KR', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500;
    color: var(--REG-white) !important;
    outline: none;
    transition: border-color .25s, box-shadow .25s, background .25s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

    .inputstyle::placeholder {
        font-family: 'Noto Sans KR', sans-serif !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #dcc48b !important;
        opacity: 1 !important;
        letter-spacing: 0 !important;
    }

    .inputstyle::-webkit-input-placeholder {
        font-family: 'Noto Sans KR', sans-serif !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #dcc48b !important;
        opacity: 1 !important;
    }

    .inputstyle::-moz-placeholder {
        font-family: 'Noto Sans KR', sans-serif !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #dcc48b !important;
        opacity: 1 !important;
    }

    .inputstyle:-ms-input-placeholder {
        font-family: 'Noto Sans KR', sans-serif !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #dcc48b !important;
        opacity: 1 !important;
    }

    .inputstyle:focus,
    .select:focus {
        background: rgba(0,30,65,0.85);
        border-color: var(--REG-blue);
        box-shadow: 0 0 0 2px rgba(237,176,18,0.12), 0 0 18px rgba(237,176,18,0.1), inset 0 0 20px rgba(237,176,18,0.04);
    }

/* SELECT 화살표 */
.select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%2300aaff' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

    .select option {
        background: #020d1e;
        color: var(--REG-white);
    }

/* readonly */
#D_RecommenderName[readonly],
#D_SponsorName[readonly] {
    background: rgba(0,15,35,0.55) !important;
    border-color: rgba(237,167,18,0.1) !important;
    color: rgba(240,217,170,0.55) !important;
    cursor: default;
}

/* ══════════════════════════
   ROW PAIR (추천인 / 후원인)
   ══════════════════════════ */
.form-row-pair {
    display: flex;
    /* 검증 메시지가 이 줄 안으로 들어오므로 줄바꿈을 허용한다.
       가로 간격만 10px 이고 세로(메시지와의 간격)는 좁게 둔다. */
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 4px;
    width: 100%;
}

    /* ★ bootstrapValidator 는 row:'.form-group' 이라 오류 문구를 이 flex 줄에
       직접 집어넣는다. 그대로 두면 세 번째 칸이 되어 입력칸 둘을 밀어버린다
       (핸드폰 칸이 손톱만 하게 찌그러지던 원인).
       한 줄을 통째로 차지하게 해서 아래로 내린다. */
    .form-row-pair > .help-block,
    .form-row-pair > .nx-phone-hint {
        flex: 0 0 100%;
        width: 100%;
        order: 99;
        margin-top: 0;
    }

    .form-row-pair .col-6 {
        flex: 6;
        min-width: 0;
    }

    .form-row-pair .col-4 {
        flex: 4;
        min-width: 0;
    }

/* ══════════════════════════
   VALIDATION ERROR
   ══════════════════════════ */
.has-error .inputstyle,
.has-error .select {
    border-color: var(--REG-error) !important;
    box-shadow: 0 0 0 2px rgba(255,79,163,0.12) !important;
}

.has-error .help-block {
    color: var(--REG-error) !important;
    font-size: 12px;
    font-family: 'Noto Sans KR', 'Source Sans Pro', sans-serif !important;
    letter-spacing: 1px;
    margin-top: 4px;
    display: block;
}

/* 나라를 안 골랐을 때의 안내. 오류가 아니라 안내라 붉게 하지 않는다.
   글자는 마크업에 있어야 런타임 번역기가 집어간다. */
.nx-phone-hint {
    display: none;
    color: var(--REG-gray);
    font-size: 12px;
    font-family: 'Noto Sans KR', 'Source Sans Pro', sans-serif !important;
    letter-spacing: 1px;
}

    .nx-phone-hint.on { display: block; }

/* ══════════════════════════
   칸별 통과 / 미통과 표시
   ══════════════════════════ */

/* ★ 통과한 칸은 푸른 테두리.
   .has-error 는 '줄' 에 붙기 때문에 핸드폰 줄처럼 칸이 둘인 곳에서는
   한쪽만 틀려도 둘 다 빨개진다. 그래서 칸마다 따로 표시한다.
   .has-error 규칙보다 뒤에 두어야 이긴다. */
.inputstyle.nx-valid,
.select.nx-valid {
    border-color: var(--REG-success) !important;
    box-shadow: 0 0 0 2px rgba(241,177,75,0.18) !important;
}

.inputstyle.nx-invalid,
.select.nx-invalid {
    border-color: var(--REG-error) !important;
    box-shadow: 0 0 0 2px rgba(255,79,163,0.12) !important;
}

/* 나라를 안 골랐을 때의 핸드폰 칸. 잠겼다는 게 보여야 한다. */
.inputstyle:disabled,
.select:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    border-color: var(--REG-border) !important;
    box-shadow: none !important;
}

/* ══════════════════════════
   BUTTONS
   ══════════════════════════ */
.buttonarea {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

    .buttonarea > div {
        flex: 1;
    }

#btn_Apply,
#btn_Cancle {
    width: 100% !important;
    height: 50px;
    border-radius: 3px;
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    border: none;
}

/* Signup — login btn_Apply 동일 */
#btn_Apply {
    border: 1px solid var(--REG-border-hi) !important;
    background: linear-gradient(135deg, rgba(149,99,11,0.85) 0%, rgba(0,40,100,0.95) 50%, rgba(149,99,11,0.85) 100% );
    color: var(--REG-white);
    box-shadow: 0 0 22px rgba(237,176,18,0.25), inset 0 0 20px rgba(237,176,18,0.06);
}

    #btn_Apply::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent 0%, rgba(242,112,13,0.18) 50%, transparent 100%);
        transform: translateX(-100%);
        transition: transform 0.6s;
    }

    #btn_Apply:hover::before {
        transform: translateX(100%);
    }

    #btn_Apply:hover {
        border-color: var(--REG-blue-bright) !important;
        box-shadow: 0 0 35px rgba(237,176,18,0.5), 0 0 70px rgba(237,176,18,0.2), inset 0 0 25px rgba(237,176,18,0.12);
        text-shadow: 0 0 12px var(--REG-blue);
    }

    #btn_Apply:active {
        transform: scale(0.99);
    }

    #btn_Apply:disabled {
        opacity: 0.55;
        pointer-events: none;
    }

/* Back */
#btn_Cancle {
    background: rgba(237,176,18,0.07);
    border: 1px solid var(--REG-border) !important;
    color: var(--REG-blue);
}

    #btn_Cancle:hover {
        background: rgba(237,176,18,0.14);
        border-color: var(--REG-blue) !important;
        box-shadow: 0 0 14px rgba(237,176,18,0.25);
    }

/* ══════════════════════════
   STATUS BAR
   ══════════════════════════ */
.status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 26px;
    background: rgba(0,8,18,0.92);
    border-top: 1px solid var(--REG-border);
    display: flex;
    align-items: center;
    padding: 0 18px;
    gap: 24px;
    z-index: 20;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Noto Sans KR', 'Source Sans Pro', sans-serif !important;
    font-size: 8px;
    letter-spacing: 2px;
    color: var(--REG-gray);
    text-transform: uppercase;
}

.status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--REG-neon);
    box-shadow: 0 0 8px var(--REG-neon-glow);
    animation: REGDotPulse 2s infinite;
}

@keyframes REGDotPulse {
    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: 0.25;
    }
}

/* ══════════════════════════
   RESPONSIVE
   ══════════════════════════ */
@media (max-width: 480px) {
    .REG-card {
        padding: 28px 16px 24px;
    }

    .buttonarea {
        flex-direction: column-reverse;
    }

    #btn_Apply, #btn_Cancle {
        height: 46px;
        font-size: 10px;
    }
}

/* 접근성 */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--REG-blue);
    outline-offset: 2px;
}

#D_PHONE_CODE {
    height: 100%;
    background: rgba(0,15,35,0.6);
    border: 1px solid rgba(237,167,18,0.15);
    color: #f0d9aa;
    border-radius: 6px;
    padding: 0 8px;
    font-size: 13px;
}

/* ── 좁은 화면: 마법진을 카드 안으로 줄인다 ── */
@media (max-width: 600px) {
    .REG-halo { width: 124%; }
}
