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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: #FAF8F5;
    color: #0F1F3D;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Navbar ─────────────────────────────────────────── */
.navbar {
    background: #0F1F3D;
    position: sticky;
    top: 0;
    z-index: 200;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 0 24px;
    height: 64px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-logo img {
    height: 40px;
    display: block;
}

.navbar-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.navbar-menu > li > a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s;
    white-space: nowrap;
    cursor: pointer;
}

.navbar-menu > li > a:hover {
    background: rgba(91, 184, 212, 0.25);
}

/* ── Dropdown ────────────────────────────────────────── */
.has-dropdown {
    position: relative;
}

.has-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(15, 31, 61, 0.18);
    list-style: none;
    min-width: 160px;
    overflow: hidden;
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s ease, visibility 0s linear .15s;
}

.has-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .15s ease;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #0F1F3D;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: background 0.15s, color 0.15s;
}

.dropdown-menu li a:hover {
    background: #FAF8F5;
    color: #5BB8D4;
}

.dropdown-menu li + li {
    border-top: 1px solid #f0ede9;
}

/* ── Main ────────────────────────────────────────────── */
main {
    flex: 1;
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
    background: #0F1F3D;
    color: rgba(255, 255, 255, 0.65);
    padding: 36px 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-contact p {
    font-size: 13px;
    line-height: 1.7;
}

.footer-copy {
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* ── Toast ───────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: #0F1F3D;
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(15, 31, 61, 0.3);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Global Modals (interceptor.js) ──────────────────── */
.sa-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 31, 61, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.sa-modal-box {
    background: #fff;
    border-radius: 14px;
    padding: 40px 36px;
    text-align: center;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 16px 48px rgba(15, 31, 61, 0.28);
}

.sa-modal-msg {
    font-size: 16px;
    font-weight: 600;
    color: #0F1F3D;
    line-height: 1.7;
    margin-bottom: 24px;
    font-family: 'Noto Sans KR', sans-serif;
}

.sa-modal-btn {
    background: #0F1F3D;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    transition: background 0.2s;
}

.sa-modal-btn:hover {
    background: #5BB8D4;
}

/* ── Login Terminal ──────────────────────────────────── */
.terminal-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 44px 36px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 32px rgba(15, 31, 61, 0.14);
}

.terminal-logo {
    text-align: center;
    margin-bottom: 28px;
}

.terminal-logo-img {
    height: 34px;
    width: auto;
}

.terminal-view-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #0F1F3D;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.terminal-label {
    font-size: 13px;
    font-weight: 600;
    color: #0F1F3D;
    display: block;
    margin-bottom: 6px;
    font-family: 'Noto Sans KR', sans-serif;
}

.terminal-input,
.terminal-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #E5E0D8;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Noto Sans KR', sans-serif;
    color: #0F1F3D;
    background: #FAF8F5;
    outline: none;
    margin-bottom: 14px;
    box-sizing: border-box;
    transition: border-color 0.15s, background 0.15s;
}

.terminal-input:focus,
.terminal-select:focus {
    border-color: #5BB8D4;
    background: #fff;
}

.terminal-select {
    appearance: none;
    cursor: pointer;
}

.terminal-btn {
    width: 100%;
    padding: 12px;
    background: #0F1F3D;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    margin-top: 4px;
    letter-spacing: -0.01em;
    transition: background 0.2s;
}

.terminal-btn:hover:not(:disabled) {
    background: #5BB8D4;
}

.terminal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.terminal-error {
    color: #e76f51;
    font-size: 13px;
    text-align: center;
    margin-top: 12px;
    line-height: 1.55;
    font-family: 'Noto Sans KR', sans-serif;
}

.terminal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.terminal-link {
    color: #5BB8D4;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    font-family: 'Noto Sans KR', sans-serif;
    transition: color 0.15s;
}

.terminal-link:hover {
    color: #0F1F3D;
    text-decoration: underline;
}

.terminal-divider {
    color: #D0CDC8;
    font-size: 13px;
}

.terminal-info {
    text-align: center;
    padding: 8px 0 16px;
    font-size: 14px;
    color: #0F1F3D;
    line-height: 1.7;
    font-family: 'Noto Sans KR', sans-serif;
}

.terminal-timer {
    font-size: 12px;
    color: #9B9490;
    text-align: center;
    margin-top: 8px;
    font-family: 'Noto Sans KR', sans-serif;
}

.terminal-resend-btn {
    width: 100%;
    background: transparent;
    border: 1.5px solid #5BB8D4;
    color: #5BB8D4;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.2s;
}

.terminal-resend-btn:hover:not(:disabled) {
    background: #5BB8D4;
    color: #fff;
}

.terminal-resend-btn:disabled {
    border-color: #D0CDC8;
    color: #9B9490;
    cursor: not-allowed;
}

.terminal-code-input {
    width: 100%;
    padding: 14px;
    border: 2px solid #E5E0D8;
    border-radius: 8px;
    font-size: 28px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #0F1F3D;
    background: #FAF8F5;
    outline: none;
    text-align: center;
    letter-spacing: 10px;
    margin-bottom: 14px;
    box-sizing: border-box;
    transition: border-color 0.15s, background 0.15s;
}

.terminal-code-input:focus {
    border-color: #5BB8D4;
    background: #fff;
}

.terminal-static-icon {
    font-size: 36px;
    text-align: center;
    margin-bottom: 12px;
}

/* ── Landing Page ────────────────────────────────────── */
.landing-hero {
    display: grid;
    grid-template-columns: 65fr 35fr;
    min-height: calc(100vh - 64px);
}

.landing-left {
    position: relative;
    background: #0F1F3D;
    overflow: hidden;
}

.landing-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #0F1F3D;
    background-image: url('/static/landing_bg_01.jpg');
}

.landing-brand {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px 52px;
    background: linear-gradient(to top, rgba(15,31,61,0.72) 0%, transparent 55%);
    pointer-events: none;
}

.landing-brand-headline {
    font-family: 'Montserrat', 'Noto Sans KR', sans-serif;
    font-weight: 800;
    font-size: 30px;
    line-height: 1.28;
    letter-spacing: -0.01em;
    color: #fff;
    word-break: keep-all;
    text-shadow: 0 2px 14px rgba(0,0,0,0.4);
}

.landing-right {
    background: #FAF8F5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    border-left: 1px solid #E5E0D8;
}

.notices-section {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 32px;
}

.notices-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: #0F1F3D;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.notices-list {
    list-style: none;
    border-top: 2px solid #0F1F3D;
}

.notices-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #F0EDE9;
    gap: 12px;
}

.notice-title {
    font-size: 14px;
    color: #0F1F3D;
    font-family: 'Noto Sans KR', sans-serif;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-date {
    font-size: 12px;
    color: #9B9490;
    white-space: nowrap;
    font-family: 'Noto Sans KR', sans-serif;
}

.notices-empty {
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #9B9490;
    font-family: 'Noto Sans KR', sans-serif;
}

.ad-banner {
    background: #F0EDE9;
    border-top: 1px solid #E5E0D8;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Login Page ──────────────────────────────────────── */
.login-page-bg {
    background: #FAF8F5;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

@media (max-width: 768px) {
    .landing-hero {
        grid-template-columns: 1fr;
    }
    .landing-left {
        min-height: 220px;
    }
    .landing-right {
        border-left: none;
        border-top: 1px solid #E5E0D8;
    }
}
