/* intro.htm (로그인 전 첫 화면) - 반응형 포털형 */
:root {
    --navy: #0b2e59;
    --blue: #2f7fd1;
    --sky: #e8f2fc;
    --orange: #f58220;
    --gray: #5b6573;
    --line: #dde3ea;
    --bg: #f3f6fa;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body.intro {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #1f2937;
    background: var(--bg);
}

.intro a { color: inherit; text-decoration: none; }
.intro button { font: inherit; }

.in { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* 상단 */
.top { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.top .in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: baseline; gap: 8px; font-weight: 800; font-size: 26px; letter-spacing: -.5px; color: var(--navy); }
.logo b { color: var(--orange); }
.logo span { font-size: 12px; font-weight: 600; letter-spacing: 3px; color: var(--gray); }

/* 히어로 + 로그인 */
.hero { background: linear-gradient(120deg, var(--navy), var(--blue)); color: #fff; }
.hero .in { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: 36px; line-height: 1.25; margin: 0 0 12px; letter-spacing: -.5px; }
.hero p { margin: 0 0 20px; color: #d6e4f5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 6px 12px; font-size: 13px; }

.login { background: #fff; color: #1f2937; border-radius: 14px; padding: 26px; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.login h2 { margin: 0 0 16px; font-size: 20px; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 13px; color: var(--gray); margin-bottom: 6px; }
.field input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; font-size: 15px; background: #fff; }
.field input:focus { outline: 2px solid var(--blue); border-color: transparent; }
.btn { width: 100%; height: 48px; border: 0; border-radius: 8px; background: var(--navy); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
.btn:hover, .btn:focus { background: #0f3d75; }

/* 카드 */
.cards { padding-top: 28px; padding-bottom: 28px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; min-width: 0; }
.box h3 { margin: 0 0 8px; font-size: 16px; }
.box p { margin: 0; color: var(--gray); font-size: 14px; line-height: 1.7; }

.notice { list-style: none; margin: 0; padding: 0; }
.notice li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.notice li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.notice li a:hover, .notice li a:focus { color: var(--blue); }
.notice time { flex: none; color: #9aa3ae; font-size: 13px; }
.notice .empty { color: #9aa3ae; justify-content: center; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--blue); background: var(--sky); border-radius: 4px; padding: 1px 6px; margin-right: 6px; }

.foot { margin-top: auto; padding: 18px 20px; text-align: center; font-size: 12px; color: #9aa3ae; }
.foot span + span::before { content: "·"; margin: 0 6px; }

@media (max-width: 900px) {
    .hero .in { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; padding-bottom: 28px; }
    .hero .login { order: -1; }
    .hero h1 { font-size: 24px; }
}

@media (max-width: 400px) {
    .logo { font-size: 22px; }
    .logo span { letter-spacing: 2px; }
    .login { padding: 20px; }
}
