@charset "utf-8";

html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

@font-face {
    font-family: 'NanumSquare';
    src: url('../fonts/NanumSquareR.woff2') format('woff2'),
         url('../fonts/NanumSquareR.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'NotoSansKR';
    src: url('../fonts/NotoSansKR-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'GmarketSans';
    src: url('../fonts/GmarketSansLight.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

/* 적용 */
body {
    font-family: 'Pretendard', 'NotoSansKR', 'NanumSquare', sans-serif;
    font-size: 16px;
}


body {
    font-family: "Pretendard", "NotoSansKR", "NanumSquare", sans-serif;
}

:root {
    --blue-hero: #1d4225;
    --blue-hero-deep: #17341d;
    --white: #ffffff;
    --ink: #0b1220;
    --card: #113639;
    --card-2: #113639;
    --primary: #315a2c;
    --primary-2: #315a2c;
    --input: #112539;
    --line: #113639;
    --badge: #ef4444; /* 공지 배지 색 */
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%;
    margin: 0
}

/* ===== Page ===== */
body {
    background: radial-gradient(1200px 800px at 80% 40%, #1a2235 0%, #364054 60%)
        fixed, #0b1220;
    color: var(--white);
}

.wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

@media ( max-width :1024px) {
    .wrap {
        grid-template-columns: 1fr;
    }
}

/* ===== Left (Hero + Notice) ===== */
.left {
    background: linear-gradient(180deg, var(--blue-hero) 0%,
        var(--blue-hero-deep) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.right {background: #17294a;}

.hero-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 20px;
}

.intro-badge {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    padding: 8px 16px;
    margin-bottom: 20px;
    font-weight: 700;
}

.intro-text {
    max-width: 680px;
    margin-bottom: 40px;
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.notice-wrap {
    max-width: 600px;
    width: 100%;
}

.notice-wrap h1 {
    letter-spacing: clamp(2px, 1.2vw, 10px);
    margin: 0 0 14px 2px;
    text-align: center;
}

/* ===== Notice Table ===== */
.table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, .1);
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    letter-spacing: clamp(.5px, .4vw, 4px);
}

.table th, .table td {
    padding: 12px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
}

/* 정렬 */
.table th:nth-child(2), .table td.title-cell {
    text-align: left;
}

.table th:nth-child(1), .table td:nth-child(1), .table th:nth-child(4),
    .table td:nth-child(4) {
    text-align: right;
}

/* 폭 가이드 */
.table th:nth-child(1), .table td:nth-child(1) {
    width: 64px;
}

.table th:nth-child(3), .table td:nth-child(3) {
    width: 170px;
}

.table th:nth-child(4), .table td:nth-child(4) {
    width: 110px;
}

/* 제목 셀 말줄임 */
.table td.title-cell {
    font-weight: 500;
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hover/Focus */
.table tbody tr:hover, .table tbody tr:focus-within {
    background-color: rgba(255, 255, 255, .15);
    cursor: pointer;
    transition: background-color .2s ease;
}

/* 배지 */
.badge {
    display: inline-block;
    background: var(--badge);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    margin-right: 6px;
    vertical-align: middle;
}

.footer {
    margin-top: 40px;
    font-size: 16px;
    line-height: 1.6;
}

/* ===== Right (Login Card) ===== */
.right {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.login-card {
    background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
    border: 1px solid #1a2944;
    border-radius: 14px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 30px 50px rgba(0, 0, 0, .45);
    text-align: center;
}

.logo-bottom-clip {
    width: 180px;
    height: auto;
    clip-path: inset(50% 0 0 0);
}

.brand img {
    /* margin-bottom: 20px; */
}

.panel-title {
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    margin: 12px 0 6px;
}

.input {
    width: 100%;
    background: var(--input);
    border: 1px solid var(--line);
    padding: 12px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}

.input::placeholder {
    color: #7c8daa;
}

.submit {
    margin-top: 20px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-2)
        100%);
    color: #fff;
    cursor: pointer;
}

.find-links {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
}

.find-links a {
    color: #9db3d8;
    text-decoration: none;
    margin: 0 6px;
}

.find-links a:hover {
    text-decoration: underline;
}

.find-links span {
    color: #9db3d8;
}

.text-end {
    text-align: end !important;
}

.text-center {
    text-align: center !important;
}

/* ===== Modal (Notice) ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}

#noticeModal .modal-content {
    width: min(720px, 92vw);
    padding: 20px 22px 18px;
    border-radius: 14px;
    margin: 8% auto;
    background: #ffffff; /* ✅ 밝은 톤 */
    color: #1e293b;      /* 짙은 회색 글자 */
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
    position: relative;
    animation: modalFade .25s ease;
}

@keyframes modalFade {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.notice-modal .nm-title {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: .2px;
    margin: 4px 40px 10px 2px;
    color: #2563eb; /* ✅ 브랜드 포인트 색 */
}

.notice-modal .nm-meta {
    color: #64748b;
    font-size: 13px;
    margin: 0 0 12px 2px;
}

.notice-modal .nm-sep {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, .08);
    margin: 12px 0 14px;
}

.notice-modal .nm-content {
    white-space: pre-wrap;
    word-break: keep-all;
    line-height: 1.65;
    font-size: 15px; /* ✅ 가독성 업 */
    color: #334155;
    max-height: 56vh;
    min-height: 15vh;
    overflow: auto;
    padding-right: 6px;
}

/* 닫기 버튼 */
#noticeModal .modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 18px;
    background: transparent;
    border: 0;
    color: #64748b;
    cursor: pointer;
    transition: background .2s, color .2s;
}

#noticeModal .modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* ===== Responsive tweaks ===== */
@media ( max-width :480px) {
    .hero-title {
        font-size: 28px;
    }
    .intro-text {
        font-size: 1rem;
    }
    .table th, .table td {
        padding: 10px;
        font-size: 13px;
    }
    #noticeModal .modal-content {
        padding: 14px;
        margin: 6% auto;
    }
    .notice-modal .nm-title {
        font-size: 17px;
    }
    .notice-modal .nm-content {
        max-height: 58vh;
    }
}

