﻿/* ══════════════════════════════════════════════════════════════
   아틸라 · login.css
   배포 경로: /myoffice/account/css/login.css
   컨셉: Cyber Neon Blue · 딥스페이스
   prefix 규칙: CSS변수·클래스·keyframes 모두 LOGIN 접두사
   ══════════════════════════════════════════════════════════════ */

/* ─── 변수 ─── */
:root {
    --LOGIN-bg: #0b1220;
    --LOGIN-panel: rgba(15, 25, 44, 0.88);
    --LOGIN-blue: #c69739;
    --LOGIN-blue-bright: #d4b16b;
    --LOGIN-blue-glow: rgba(198, 151, 57, 0.4);
    --LOGIN-neon: #d3b069;
    --LOGIN-neon-glow: rgba(211, 176, 105, 0.3);
    --LOGIN-white: #f7f1e5;
    --LOGIN-gray: #846830;
    --LOGIN-border: rgba(198, 151, 57, 0.18);
    --LOGIN-border-hi: rgba(198, 151, 57, 0.55);
    --LOGIN-error: #d66d66;
    --LOGIN-success: #d3b069;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    background: var(--LOGIN-bg);
    color: var(--LOGIN-white);
    font-family: 'Noto Sans KR', sans-serif;
    overflow: hidden;
}

/* ══════════════════════════
   BACKGROUND
   ══════════════════════════ */
#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(198,151,57,0.018) 2px, rgba(198,151,57,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%);
}

/* ══════════════════════════
   LOADING
   ══════════════════════════ */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--LOGIN-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    /* 장식용 스플래시다. 화면을 가리기만 하고 클릭은 통과시킨다 —
       안 그러면 로딩이 끝나기 전에 로그인 버튼을 누를 수 없다. */
    pointer-events: none;
}

    .loading-overlay.hidden {
        opacity: 0;
        visibility: hidden;
        /* 사라지는 0.7s 동안에도 아래 버튼이 눌리게 한다 */
        pointer-events: none;
    }

.load-ring-wrap {
    position: relative;
    width: 190px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 로딩 로고 — 실제 마크를 쓴다 (예전엔 'ATILLA' 텍스트였다) */
.load-mark {
    position: relative;
    z-index: 1;
    width: 140px;
    display: block;
    animation: LOGINLoadMark 2.4s ease-in-out infinite;
}

@keyframes LOGINLoadMark {
    0%, 100% { filter: none; }
    50%      { filter: none; }
}

/* 로고 둘레를 도는 푸른 네온 — 인트로(.orbit)와 같은 기법·같은 색
   conic-gradient 로 빛 조각을 만들고 radial mask 로 링만 남긴 뒤 통째로 돌린다.
   mask 는 closest-side 여야 % 가 반지름 기준이 된다.
   회전 키프레임마다 translate(-50%,-50%) 를 다시 써야 위치가 안 밀린다. */
.load-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 166px;
    height: 166px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1.3px);
    transform: translate(-50%, -50%) rotate(0deg);
    -webkit-mask: radial-gradient(circle closest-side, transparent 0 86%, #000 88% 93%, transparent 95%);
            mask: radial-gradient(circle closest-side, transparent 0 86%, #000 88% 93%, transparent 95%);
}

    .load-orbit.lo1 {
        background: conic-gradient(from 0deg,
            transparent 0deg 284deg,
            rgba(200, 155, 65, 0) 288deg,
            rgba(211, 176, 105, .85) 332deg,
            #f8f3e9 350deg,
            rgba(211, 176, 105, .85) 356deg,
            transparent 360deg);
        animation: LOGINOrbitCW 2.2s linear infinite;
    }

    .load-orbit.lo2 {
        width: 196px;
        height: 196px;
        opacity: .62;
        background: conic-gradient(from 150deg,
            transparent 0deg 306deg,
            rgba(200, 155, 65, 0) 310deg,
            rgba(211, 176, 105, .55) 340deg,
            rgba(248, 243, 233, .9) 352deg,
            transparent 360deg);
        animation: LOGINOrbitCCW 3.4s linear infinite;
    }

@keyframes LOGINOrbitCW {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes LOGINOrbitCCW {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* 바닥에 깔리는 푸른 발광 */
.load-ring-wrap::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 260px;
    height: 260px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(200,155,65,.22) 0%, rgba(200,155,65,.07) 42%, transparent 68%);
    animation: LOGINLoadHalo 2.4s ease-in-out infinite;
}

@keyframes LOGINLoadHalo {
    0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.94); }
    50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.06); }
}

.load-bar-wrap {
    width: 220px;
    height: 1px;
    background: rgba(200,155,65,0.14);
    overflow: hidden;
}

.load-bar {
    height: 100%;
    width: 0%;
    background: #c89b41;
    box-shadow: none;
    animation: LOGINLoadBar 1.8s 0.4s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes LOGINLoadBar {
    to {
        width: 100%;
    }
}

.load-sub {
    font-family: 'Noto Sans KR', 'Source Sans Pro', sans-serif !important;
    font-size: 9px;
    letter-spacing: 4px;
    color: #b58f42;
    animation: LOGINBlink 1s step-end infinite;
}

@keyframes LOGINBlink {
    50% {
        opacity: 0;
    }
}

/* ══════════════════════════
   LAYOUT
   ══════════════════════════ */
.wrapper, .login-area {
    height: 100%;
    padding: 0;
    margin: 0;
}

.LOGIN-center {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    z-index: 10;
}

/* ══════════════════════════
   CARD
   ══════════════════════════ */
.LOGIN-card {
    width: 100%;
    max-width: 460px;
    min-height: 420px;
    position: relative;
    padding: 44px 40px 32px;
    background: var(--LOGIN-panel);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--LOGIN-border);
    box-shadow: none;
    transition: min-height .35s ease, padding .35s ease;
    opacity: 0;
    animation: LOGINCardIn 0.8s 0.2s cubic-bezier(.16,1,.3,1) forwards;
}

@keyframes LOGINCardIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.LOGIN-card.compact {
    min-height: 200px;
    padding-bottom: 16px;
}

/* 코너 장식 */
.c-tl, .c-tr, .c-bl, .c-br {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--LOGIN-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(--LOGIN-blue), var(--LOGIN-neon), var(--LOGIN-blue), transparent);
    box-shadow: none;
}

/* ══════════════════════════
   BRAND / LOGO
   ══════════════════════════ */
/* ── 로고 무대: 마법진 광원을 로고 뒤에 깔고 놓는다 ── */
.LOGIN-stage {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.LOGIN-halo {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 170%;                   /* 카드(460px) 안에 들어오는 폭 */
    /* 마법진 중심은 SVG 높이의 80.3% 지점.
       19.7% 면 원 중심이 로고 밑동에 딱 붙는다. 다만 눈에 보이는 건 중심이 아니라
       가장 바깥 링(r=352, 원근 0.30)의 윗변 — 중심에서 위로 폭의 10.6% 지점이다.
       40% 로 두면 링 윗변이 로고 밑동에서 약 21px 아래로 떨어진다.
       translateY 의 %는 자기 높이 기준이라 폭이 바뀌어도 간격 비율이 유지된다 */
    transform: translate(-50%, 40%);
    pointer-events: none;
    z-index: 0;
    opacity: .95;
}

.LOGIN-stage .LOGIN-logo-img,
.LOGIN-stage .LOGIN-logo-fallback {
    position: relative;
    z-index: 1;
}

.LOGIN-brand {
    text-align: center;
    margin-bottom: 70px;   /* 마법진이 아래로 내려온 만큼 확보 */
}

.LOGIN-logo-img {
    width: 260px;
    max-width: 100%;
    filter: none;
    animation: LOGINLogoFloat 3.5s ease-in-out infinite;
}

@keyframes LOGINLogoFloat {
    0%, 100% {
        filter: none;
        transform: translateY(0);
    }

    50% {
        filter: none;
        transform: translateY(-4px);
    }
}

.LOGIN-logo-fallback {
    display: none;
}

.LOGIN-logo-main-text {
    font-family: Noto Serif KR, monospace;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 10px;
    color: var(--LOGIN-white);
    display: block;
    line-height: 1;
    text-shadow: none;
    animation: LOGINGlowPulse 3s ease-in-out infinite;
}

.LOGIN-logo-sub-text {
    font-family: 'Noto Sans KR', 'Source Sans Pro', sans-serif !important;
    font-size: 11px;
    letter-spacing: 7px;
    color: var(--LOGIN-blue);
    display: block;
    margin-top: 8px;
}

@keyframes LOGINGlowPulse {
    0%, 100% {
        text-shadow: none;
    }

    50% {
        text-shadow: none;
    }
}

/* ══════════════════════════
   MESSAGE
   ══════════════════════════ */
#sp_getMsg {
    display: block;
    min-height: 28px;
    text-align: center;
}

    #sp_getMsg p {
        margin: 8px 0 10px;
        font-family: 'Noto Sans KR', 'Source Sans Pro', sans-serif !important;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 1.5px;
        opacity: 0;
        transform: translateY(6px);
        transition: opacity .45s, transform .45s;
        color: var(--LOGIN-error);
        text-shadow: none;
    }

        #sp_getMsg p.show {
            opacity: 1;
            transform: translateY(0);
        }

/* ══════════════════════════
   FIELDS
   ══════════════════════════ */
.LOGIN-field, #btn_Apply {
    transition: opacity .35s ease, transform .35s ease, height .35s ease, margin .35s ease, padding .35s ease;
    will-change: opacity, transform, height, margin, padding;
}

.LOGIN-field {
    margin-bottom: 14px;
}

.field-label {
    font-family: 'Noto Sans KR', 'Source Sans Pro', sans-serif !important;
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--LOGIN-blue);
    text-transform: uppercase;
    margin-bottom: 7px;
    display: block;
    opacity: 0.75;
}

.input-icon {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

    .input-icon i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--LOGIN-blue);
        opacity: 0.65;
        font-size: 13px;
        z-index: 2;
    }

.LOGIN-field .form-control {
    height: 50px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
    background: rgba(17,29,52,0.65);
    border: 1px solid var(--LOGIN-border);
    border-radius: 3px;
    padding: 0 16px 0 44px;
    color: var(--LOGIN-white);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    outline: none;
    letter-spacing: 0.3px;
    transition: border-color .25s, box-shadow .25s, background .25s;
}

    .LOGIN-field .form-control::placeholder {
        color: #d8c08f !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        opacity: 1 !important;
    }

    .LOGIN-field .form-control::-webkit-input-placeholder {
        color: #d8c08f !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        opacity: 1 !important;
    }

    .LOGIN-field .form-control::-moz-placeholder {
        color: #d8c08f !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        opacity: 1 !important;
    }

    .LOGIN-field .form-control:-ms-input-placeholder {
        color: #d8c08f !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        opacity: 1 !important;
    }

    .LOGIN-field .form-control:focus {
        background: rgba(21,35,63,0.85);
        border-color: var(--LOGIN-blue);
        box-shadow: none;
    }

.has-error .form-control {
    border-color: var(--LOGIN-error) !important;
    box-shadow: none !important;
}

.has-error .help-block {
    color: var(--LOGIN-error) !important;
    font-size: 11px;
    font-family: 'Noto Sans KR', 'Source Sans Pro', sans-serif !important;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ══════════════════════════
   BUTTON
   ══════════════════════════ */
#btn_Apply {
    width: 100%;
    height: 50px;
    margin-top: 6px;
    border: 1px solid var(--LOGIN-border-hi);
    border-radius: 3px;
    background: rgba(124,95,36,0.85);
    color: var(--LOGIN-white);
    font-family: Noto Serif KR, monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s;
}

    #btn_Apply::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent 0%, rgba(198,151,57,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(--LOGIN-blue-bright);
        box-shadow: none;
        text-shadow: none;
    }

    #btn_Apply:active {
        transform: scale(0.99);
    }

    #btn_Apply:disabled {
        opacity: 0.55;
        pointer-events: none;
    }

/* ══════════════════════════
   SUB ROW
   ══════════════════════════ */
.login-subrow {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-btn {
    padding: 7px 14px;
    font-size: 11px;
    font-family: 'Noto Sans KR', 'Source Sans Pro', sans-serif !important;
    letter-spacing: 1.5px;
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

    .sub-btn.left {
        background: rgba(198,151,57,0.07);
        color: var(--LOGIN-blue);
        border: 1px solid var(--LOGIN-border);
    }

        .sub-btn.left:hover {
            background: rgba(198,151,57,0.16);
            border-color: var(--LOGIN-blue);
            box-shadow: none;
        }

    .sub-btn.right {
        background: rgba(211,176,105,0.07);
        color: var(--LOGIN-neon);
        border: 1px solid rgba(211,176,105,0.2);
    }

        .sub-btn.right:hover {
            background: rgba(211,176,105,0.14);
            border-color: var(--LOGIN-neon);
            box-shadow: none;
            color: #fff;
        }

/* ══════════════════════════
   CARD FOOTER
   ══════════════════════════ */
.card-footer-links {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 18px;
}

    .card-footer-links a {
        font-family: 'Noto Sans KR', 'Source Sans Pro', sans-serif !important;
        font-size: 9px;
        letter-spacing: 1.5px;
        color: var(--LOGIN-gray);
        text-decoration: none;
        transition: color 0.2s;
    }

        .card-footer-links a:hover {
            color: var(--LOGIN-blue);
        }

/* ══════════════════════════
   LANG LAYER
   ══════════════════════════ */
.lang-layer {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11,19,34,0.88);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    backdrop-filter: none;
}

.lang-box {
    background: rgba(14,24,43,0.97);
    border: 1px solid var(--LOGIN-border-hi);
    width: 320px;
    padding: 28px 24px 20px;
    border-radius: 4px;
    box-shadow: none;
    position: relative;
}

    .lang-box::before, .lang-box::after {
        content: '';
        position: absolute;
        width: 14px;
        height: 14px;
        border-color: var(--LOGIN-blue);
        border-style: solid;
    }

    .lang-box::before {
        top: -1px;
        left: -1px;
        border-width: 2px 0 0 2px;
    }

    .lang-box::after {
        bottom: -1px;
        right: -1px;
        border-width: 0 2px 2px 0;
    }

.lang-title {
    font-family: Noto Serif KR, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--LOGIN-blue);
    margin-bottom: 16px;
    text-shadow: none;
    text-transform: uppercase;
}

.lang-list {
    max-height: 310px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--LOGIN-border) transparent;
}

.lang-item {
    padding: 9px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-radius: 2px;
    font-size: 13px;
    color: rgba(232,217,186,0.7);
    border: 1px solid transparent;
    transition: all .15s;
    font-family: 'Noto Sans KR', sans-serif;
}

    .lang-item:hover {
        background: rgba(198,151,57,0.07);
        border-color: var(--LOGIN-border);
        color: var(--LOGIN-white);
    }

    .lang-item img {
        width: 24px;
        height: 16px;
        object-fit: cover;
        margin-right: 12px;
        border: 1px solid rgba(198,151,57,0.2);
    }

.lang-close {
    margin-top: 14px;
    width: 100%;
    padding: 9px;
    border: 1px solid var(--LOGIN-border);
    background: rgba(198,151,57,0.05);
    color: var(--LOGIN-blue);
    font-family: 'Noto Sans KR', 'Source Sans Pro', sans-serif !important;
    font-size: 10px;
    letter-spacing: 4px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s;
    text-transform: uppercase;
}

    .lang-close:hover {
        background: rgba(198,151,57,0.14);
        border-color: var(--LOGIN-blue);
    }

/* ══════════════════════════
   STATUS BAR
   ══════════════════════════ */
.status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 26px;
    background: rgba(12,20,37,0.92);
    border-top: 1px solid var(--LOGIN-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(--LOGIN-gray);
    text-transform: uppercase;
}

.status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--LOGIN-neon);
    box-shadow: none;
    animation: LOGINDotPulse 2s infinite;
}

@keyframes LOGINDotPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.25;
    }
}

/* ══════════════════════════
   RESPONSIVE
   ══════════════════════════ */
@media (max-width: 480px) {
    .LOGIN-card {
        padding: 32px 22px 26px;
    }
}

@supports (height: 100dvh) {
    .LOGIN-center {
        min-height: 100dvh;
    }
}

@media (max-width: 820px) {
    html, body {
        overflow: auto !important;
        height: auto !important;
    }
}

@media (min-width: 821px) {
    html, body {
        overflow: hidden !important;
        height: 100vh !important;
    }
}

/* 접근성 */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--LOGIN-blue);
    outline-offset: 2px;
}

/* ── 좁은 화면: 마법진을 카드 안으로 줄인다 ── */
@media (max-width: 600px) {
    .LOGIN-halo { width: 124%; }
}
