/* ── Pretendard 폰트 ─────────────────────────────── */ @font-face { font-family: "Pretendard"; src: url("/static/fonts/Pretendard-Thin.ttf") format("truetype"); font-weight: 100; font-style: normal; font-display: swap; } @font-face { font-family: "Pretendard"; src: url("/static/fonts/Pretendard-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; } @font-face { font-family: "Pretendard"; src: url("/static/fonts/Pretendard-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; } /* ── 디자인 토큰 ─────────────────────────────────── */ :root { --navy: #0d1b2a; --navy-mid: #1b2e45; --navy-light: #253d56; --blue: #1e56a0; --blue-hover: #17437d; --blue-tint: #e8f1fb; --bg: #f0f4f8; --surface: #ffffff; --border: #dce4ed; --text: #1a2433; --muted: #627590; --success: #127a46; --danger: #b91c1c; --header-h: 64px; } /* ── 리셋 & 기본 ─────────────────────────────────── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: "Pretendard", "Segoe UI", "Apple SD Gothic Neo", system-ui, sans-serif; font-size: 15px; color: var(--text); background: var(--bg); min-height: 100vh; -webkit-font-smoothing: antialiased; } a { color: inherit; text-decoration: none; } /* ════════════════════════════════════════════════════ 로그인 / 접근 거부 페이지 ════════════════════════════════════════════════════ */ /* 전체 레이아웃: 좌측 브랜드 패널 + 우측 폼 */ .auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; } /* ── 좌측 브랜드 패널 ── */ .brand-panel { background: var(--navy); background-image: radial-gradient(circle at 20% 80%, rgba(30,86,160,.35) 0%, transparent 55%), radial-gradient(circle at 80% 20%, rgba(13,27,42,.8) 0%, transparent 50%); display: flex; flex-direction: column; justify-content: space-between; padding: 48px 52px; position: relative; overflow: hidden; } /* 점 격자 장식 */ .brand-panel::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; } .brand-logo { display: flex; align-items: center; gap: 10px; position: relative; } .brand-logo-mark { width: 38px; height: 38px; background: var(--blue); border-radius: 8px; display: flex; align-items: center; justify-content: center; } .brand-logo-mark svg { color: #fff; } .brand-name { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -.3px; } .brand-body { position: relative; padding-bottom: 16px; } .brand-tag { display: inline-block; background: rgba(30,86,160,.4); border: 1px solid rgba(30,86,160,.6); color: #93c5fd; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; margin-bottom: 24px; } .brand-headline { font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; color: #fff; line-height: 1.25; letter-spacing: -.5px; margin-bottom: 16px; } .brand-desc { font-size: 15px; color: rgba(255,255,255,.55); line-height: 1.7; max-width: 380px; } .brand-divider { width: 48px; height: 3px; background: var(--blue); border-radius: 2px; margin-top: 28px; } .brand-footer { font-size: 12px; color: rgba(255,255,255,.3); position: relative; } /* ── 우측 폼 패널 ── */ .form-panel { background: var(--surface); display: flex; align-items: center; justify-content: center; padding: 48px 40px; } .form-box { width: min(100%, 400px); } .form-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; } .form-title { font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; color: var(--navy); letter-spacing: -.4px; line-height: 1.2; margin-bottom: 8px; } .form-subtitle { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 36px; } /* 구분선 */ .form-divider { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; } .form-divider::before, .form-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); } .form-divider span { font-size: 12px; color: var(--muted); white-space: nowrap; } /* Google 로그인 버튼 */ .btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 8px; font-size: 15px; font-weight: 700; color: var(--text); cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; margin-bottom: 24px; } .btn-google:hover { border-color: var(--blue); background: var(--blue-tint); box-shadow: 0 0 0 3px rgba(30,86,160,.1); } /* 기본 버튼 (접근거부 재시도 등) */ .btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; background: var(--blue); color: #fff; border-radius: 8px; font-size: 15px; font-weight: 700; transition: background .15s; width: 100%; } .btn-primary:hover { background: var(--blue-hover); } .form-note { display: flex; align-items: flex-start; gap: 8px; background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; font-size: 13px; color: var(--muted); line-height: 1.5; } .form-note svg { flex-shrink: 0; margin-top: 1px; } /* 접근 거부 전용 */ .form-error-badge { display: inline-flex; align-items: center; gap: 8px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--danger); margin-bottom: 28px; } /* ════════════════════════════════════════════════════ 메인(대시보드) 페이지 ════════════════════════════════════════════════════ */ /* ── 헤더 ── */ .header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: var(--navy); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 4vw, 48px); box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 2px 16px rgba(0,0,0,.35); } .header-brand { display: flex; align-items: center; gap: 10px; } .header-logo-mark { width: 32px; height: 32px; background: var(--blue); border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .header-logo-mark svg { color: #fff; } .header-brand-text { display: flex; flex-direction: column; line-height: 1.2; } .header-company { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -.2px; } .header-portal { font-size: 11px; color: rgba(255,255,255,.45); font-weight: 400; } .header-user { display: flex; align-items: center; gap: 12px; } .header-avatar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); object-fit: cover; } .header-avatar-placeholder { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; } .header-user-info { display: flex; flex-direction: column; line-height: 1.25; text-align: right; } .header-user-name { font-size: 14px; font-weight: 700; color: #fff; } .header-user-email { font-size: 11px; color: rgba(255,255,255,.45); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .btn-logout { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.75); transition: background .15s, color .15s; white-space: nowrap; } .btn-logout:hover { background: rgba(255,255,255,.15); color: #fff; } /* ── 히어로 배너 ── */ .hero { background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%); padding: 36px clamp(20px, 4vw, 48px); border-bottom: 1px solid rgba(255,255,255,.06); position: relative; overflow: hidden; } .hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; background: radial-gradient(circle, rgba(30,86,160,.2) 0%, transparent 70%); pointer-events: none; } .hero-greeting { font-size: clamp(20px, 2.5vw, 26px); font-weight: 700; color: #fff; letter-spacing: -.3px; margin-bottom: 4px; } .hero-sub { font-size: 14px; color: rgba(255,255,255,.5); } .hero-date { font-size: 13px; color: rgba(255,255,255,.35); margin-top: 14px; font-weight: 400; } /* ── 메뉴 섹션 ── */ .content { padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 48px); max-width: 1200px; } .section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; } .section-title { font-size: 16px; font-weight: 700; color: var(--navy); letter-spacing: -.2px; } .section-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; background: var(--blue-tint); color: var(--blue); border-radius: 99px; font-size: 12px; font-weight: 700; } /* ── 카드 그리드 ── */ .card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; } .menu-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 0; transition: border-color .2s, box-shadow .2s, transform .2s; position: relative; overflow: hidden; } /* 상단 컬러 액센트 라인 */ .menu-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--blue); border-radius: 12px 12px 0 0; opacity: 0; transition: opacity .2s; } .menu-card:hover { border-color: #b8cfe8; box-shadow: 0 8px 32px rgba(13,27,42,.1); transform: translateY(-2px); } .menu-card:hover::before { opacity: 1; } /* 아이콘 배지 */ .card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--blue); flex-shrink: 0; } /* 카드 내용 영역이 flex로 늘어나게 */ .card-body { flex: 1; display: flex; flex-direction: column; } .card-title { font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: -.3px; line-height: 1.35; margin-bottom: 8px; } .card-desc { font-size: 13px; color: var(--muted); line-height: 1.6; flex: 1; } .card-footer { display: flex; align-items: center; justify-content: flex-end; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); } .card-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--blue); transition: gap .15s; } .menu-card:hover .card-link { gap: 8px; } /* ════════════════════════════════════════════════════ 반응형 ════════════════════════════════════════════════════ */ @media (max-width: 768px) { .auth-layout { grid-template-columns: 1fr; } .brand-panel { display: none; } .form-panel { padding: 36px 24px; align-items: flex-start; padding-top: 60px; } .header-user-info { display: none; } .hero-date { display: none; } } @media (max-width: 480px) { .header-portal { display: none; } .btn-logout span { display: none; } }