@charset "utf-8";

/* 로그인 페이지 전용 스타일 (.euno-login 범위) */
.euno-login {
    --el-navy: #14213d;
    --el-navy-2: #1d2d50;
    --el-red: #e8312f;
    --el-orange: #f37021;
    --el-text: #1f2633;
    --el-muted: #6b7484;
    --el-line: #dfe3ea;
    --el-bg: #f5f7fa;
    --el-radius: 10px;

    position: fixed; inset: 0; z-index: 10;
    overflow: auto;
    background: #eceef1 url("../../../img/bg_img_01.jpg") -60px 100% / cover no-repeat;
    font-family: "Pretendard", "Malgun Gothic", "맑은 고딕", sans-serif;
    color: var(--el-text);
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}
/* 배경 위 은은한 빛 + 하단 브랜드 톤 */
.euno-login::before {
    content: ""; position: fixed; inset: 0; pointer-events: none;
    background:
        radial-gradient(560px 520px at 50% 48%, rgba(255,255,255,.75), rgba(255,255,255,0) 70%),
        linear-gradient(180deg, rgba(20,33,61,.05), rgba(20,33,61,0) 30%, rgba(20,33,61,0) 70%, rgba(20,33,61,.08));
}
.euno-login *, .euno-login *::before, .euno-login *::after { box-sizing: border-box; }
.euno-login h1, .euno-login h3, .euno-login p { margin: 0; padding: 0; }
.euno-login svg { fill: currentColor; }

/* ===== 중앙 스테이지 ===== */
.el-stage {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%; max-width: 900px; min-height: 100%;
    margin: 0 auto; padding: 40px 16px 28px;
}

.el-head { text-align: center; margin-bottom: 24px; animation: el-rise .5s ease-out both; }
.el-head__logo { display: inline-block; }
.el-head__logo img { display: block; height: 44px; width: auto; }
.el-head__tag {
    display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px !important;
    font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--el-muted);
}
.el-head__tag::before, .el-head__tag::after {
    content: ""; width: 20px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--el-red), var(--el-orange));
}

.el-card {
    position: relative; width: 100%; overflow: hidden;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(20,33,61,.06), 0 24px 56px -12px rgba(20,33,61,.22);
}

/* ===== 가로 패널 (로그인 | 공지사항) ===== */
.el-panel {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    animation: el-rise .5s .05s ease-out both;
}
.el-panel::before { /* 상단 브랜드 라인 */
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
    background: linear-gradient(90deg, var(--el-navy) 0 55%, var(--el-red) 55%, var(--el-orange));
}
.el-form { padding: 44px 44px 36px; }

@keyframes el-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.el-form__title { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; color: var(--el-text); }
.el-form__sub { margin-top: 6px !important; font-size: 15px; color: var(--el-muted); }
.el-form form { margin-top: 28px; }

.el-field { margin-bottom: 18px; }
.el-field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--el-text); }

.el-input { position: relative; display: flex; align-items: center; }
.el-input__icon {
    position: absolute; left: 16px; width: 18px; height: 18px;
    color: #a3abb8; pointer-events: none; transition: color .15s;
}
.el-input input {
    width: 100%; height: 52px; margin: 0; padding: 0 48px 0 46px;
    border: 1px solid var(--el-line); border-radius: var(--el-radius);
    background: var(--el-bg); color: var(--el-text);
    font: inherit; font-size: 15px;
    outline: none; box-shadow: none;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.el-input input::placeholder { color: #a3abb8; }
.el-input input:hover { border-color: #c7cdd7; }
.el-input input:focus { background: #fff; border-color: var(--el-navy); box-shadow: 0 0 0 4px rgba(20, 33, 61, .1); }
.el-input:focus-within .el-input__icon { color: var(--el-navy); }
.el-input.is-error input { border-color: var(--el-red); background: #fff; box-shadow: 0 0 0 4px rgba(232, 49, 47, .1); }
.el-input.is-error .el-input__icon { color: var(--el-red); }
.el-input input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--el-bg) inset; -webkit-text-fill-color: var(--el-text); }

.el-input__toggle {
    position: absolute; right: 6px; display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px;
    background: none; color: #8a93a2; cursor: pointer;
}
.el-input__toggle:hover { color: var(--el-navy); background: rgba(20,33,61,.05); }
.el-input__toggle svg { width: 20px; height: 20px; }
.el-input__toggle .i-hide, .el-input__toggle.is-on .i-show { display: none; }
.el-input__toggle.is-on .i-hide { display: block; }

.el-caps {
    display: flex; align-items: center; gap: 6px; margin-top: 8px !important;
    font-size: 13px; color: #c2410c;
}
.el-caps::before { content: "⚠"; }
.el-caps[hidden] { display: none; }

.el-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 24px; }
.el-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--el-muted); cursor: pointer; user-select: none; }
.el-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--el-navy); cursor: pointer; }
.el-link { font-size: 14px; color: var(--el-muted) !important; text-decoration: none; }
.el-link:hover { color: var(--el-navy) !important; text-decoration: underline; }

.el-submit {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 100%; height: 54px; margin: 0; padding: 0;
    border: 0; border-radius: var(--el-radius);
    background: var(--el-navy); color: #fff;
    font: inherit; font-size: 16px; font-weight: 600; letter-spacing: .02em;
    cursor: pointer; overflow: hidden;
    box-shadow: 0 6px 16px rgba(20, 33, 61, .2);
    transition: background-color .15s, transform .1s, box-shadow .15s;
}
.el-submit:hover { background: var(--el-navy-2); box-shadow: 0 8px 22px rgba(20, 33, 61, .28); }
.el-submit:active { transform: translateY(1px); }
.el-submit:focus-visible { outline: 3px solid rgba(232, 49, 47, .45); outline-offset: 2px; }
.el-submit:disabled { cursor: wait; }
.el-submit__spinner {
    display: none; width: 20px; height: 20px;
    border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%;
    animation: el-spin .7s linear infinite;
}
.el-submit.is-loading .el-submit__label { display: none; }
.el-submit.is-loading .el-submit__spinner { display: block; }
@keyframes el-spin { to { transform: rotate(360deg); } }

.el-help {
    display: flex; gap: 10px; margin-top: auto; padding: 12px 14px;
    border-radius: var(--el-radius); background: rgba(255,255,255,.8); border: 1px solid #e6e9ee;
    font-size: 13px; line-height: 1.6; color: var(--el-muted);
}
.el-help svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #9aa3b2; }
.el-help strong { color: var(--el-text); font-weight: 600; }

/* ===== 공지사항 카드 ===== */
.el-notice {
    display: flex; flex-direction: column;
    padding: 44px 40px 32px;
    background: rgba(20,33,61,.035);
    border-left: 1px solid #e8ebf0;
}
.el-notice__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 2px solid var(--el-navy); }
.el-notice__head h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: var(--el-text); }
.el-notice__head h3::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: linear-gradient(135deg, var(--el-red), var(--el-orange));
}
.el-notice__badge {
    font-size: 10px; font-weight: 700; letter-spacing: .12em; padding: 3px 8px; border-radius: 999px;
    color: var(--el-navy); background: rgba(20,33,61,.07);
}
.el-notice .lat { margin: 0 0 20px !important; box-shadow: none !important; border: 0 !important; background: none !important; position: static !important; }
.el-notice .lat ul { margin: 0 !important; padding: 0 !important; list-style: none; }
.el-notice .lat li {
    position: relative; display: flex; align-items: center; gap: 8px;
    padding: 13px 0 !important; border-bottom: 1px solid #e6e9ee;
    font-size: 14px; line-height: 1.4; color: var(--el-text);
}
.el-notice .lat li:last-child { border-bottom: 0; }
.el-notice .lat li::before { content: none !important; display: none !important; }
.el-notice .lat li a {
    flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    color: #3a4252 !important; cursor: default; text-decoration: none !important;
}
.el-notice .lat li a strong { font-weight: 600; color: var(--el-text); }
.el-notice .lat .lt_date { position: static !important; flex: none; font-size: 12px; color: #9aa3b2 !important; font-variant-numeric: tabular-nums; }
.el-notice .lat .new_icon, .el-notice .lat .hot_icon {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; margin: 0 !important; border-radius: 4px; border: 0 !important;
    font-size: 10px; font-weight: 700; line-height: 1; color: #fff !important; background: var(--el-red) !important;
}
.el-notice .lat .lt_cmt { flex: none; font-size: 12px; color: var(--el-orange) !important; background: none !important; }
.el-notice .lat .empty_li { justify-content: center; color: #9aa3b2; padding: 18px 0 !important; }

/* ===== 하단 ===== */
.el-foot { margin-top: 24px; text-align: center; font-size: 12px; line-height: 1.8; color: #7d8696; }
.el-foot a { color: var(--el-muted) !important; text-decoration: underline; }

.euno-login a:focus-visible, .el-check input:focus-visible, .el-input__toggle:focus-visible {
    outline: 2px solid var(--el-navy); outline-offset: 2px;
}

/* ===== 반응형 ===== */
/* 세로가 낮은 화면(노트북 등): 한 화면에 들어오도록 간격 축소 */
@media (min-width: 481px) and (max-height: 960px) {
    .el-stage { padding: 24px 16px 16px; }
    .el-head { margin-bottom: 16px; }
    .el-head__logo img { height: 38px; }
    .el-head__tag { margin-top: 10px !important; }
    .el-form { padding: 32px 36px 26px; }
    .el-notice { padding: 32px 32px 24px; }
    .el-form form { margin-top: 20px; }
    .el-field { margin-bottom: 14px; }
    .el-field label { margin-bottom: 6px; }
    .el-input input { height: 48px; }
    .el-submit { height: 50px; }
    .el-row { margin-bottom: 18px; }
    .el-notice .lat li { padding: 10px 0 !important; }
    .el-foot { margin-top: 14px; }
}
@media (max-width: 860px) {
    .el-stage { max-width: 448px; }
    .el-panel { grid-template-columns: 1fr; }
    .el-notice { border-left: 0; border-top: 1px solid #e8ebf0; padding: 24px 28px 16px; }
    .el-notice__head { margin-bottom: 6px; padding-bottom: 10px; }
    .el-notice__head h3 { font-size: 16px; }
    .el-notice .lat li { padding: 10px 0 !important; }
}
@media (max-width: 900px) {
    /* 인물 사진이 카드 뒤로 겹치지 않도록 펜·노트 쪽을 보여줌 */
    .euno-login { background-position: 88% bottom; }
    .euno-login::before { background: rgba(244,246,249,.45); }
}
@media (max-width: 480px) {
    .el-stage { padding: 28px 16px 20px; }
    .el-head { margin-bottom: 18px; }
    .el-head__logo img { height: 36px; }
    .el-form { padding: 28px 22px 22px; }
    .el-form__title { font-size: 23px; }
    .el-notice { padding: 20px 22px 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .el-head, .el-panel { animation: none; }
}
