Files
dbx-main/app/static/styles.css
T
king c4ae1ab3e6 UI: King 텍스트 움직임 범위 확장, 별 도형 제거, 도형 밝기 조정
- kingFloat 애니메이션 translate 범위를 ±16px → ±70px 로 확장
- login.html / denied.html 에서 shape-7(별) div 제거
- shape-1~6 도형 밝기 은은하게 감소 (이전 수준으로 복구)
- .shape-king text-transform: none → "King" 으로 표시

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-22 02:04:54 +09:00

766 lines
17 KiB
CSS

/* ── Pretendard 폰트 (CDN) ───────────────────────── */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/packages/pretendard/dist/web/static/pretendard.css");
/* ── 디자인 토큰 ─────────────────────────────────── */
: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: 16px;
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: 22px;
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(32px, 3.6vw, 48px);
font-weight: 700;
color: #fff;
line-height: 1.2;
letter-spacing: -.5px;
margin-bottom: 20px;
}
.brand-desc {
font-size: 15px;
color: rgba(255,255,255,.55);
line-height: 1.8;
}
.brand-desc-nowrap {
font-size: 14px;
color: rgba(255,255,255,.55);
white-space: nowrap;
margin-top: 4px;
}
.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(24px, 3vw, 32px);
font-weight: 700;
color: var(--navy);
letter-spacing: -.4px;
line-height: 1.2;
margin-bottom: 10px;
}
.form-subtitle {
font-size: 15px;
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: 19px;
font-weight: 700;
color: var(--navy);
letter-spacing: -.3px;
line-height: 1.35;
margin-bottom: 10px;
}
.card-desc {
font-size: 14px;
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; }
/* ════════════════════════════════════════════════════
브랜드 패널 — 움직이는 도형
════════════════════════════════════════════════════ */
.brand-shapes {
position: absolute;
inset: 0;
overflow: hidden;
pointer-events: none;
}
.shape { position: absolute; }
/* 1. 큰 원 테두리 — 우측 상단 */
.shape-1 {
width: 360px;
height: 360px;
border: 3px solid rgba(30, 86, 160, .28);
border-radius: 50%;
top: -90px;
right: -70px;
animation: shapeFloat1 16s ease-in-out infinite;
}
/* 2. 다이아몬드 — 좌측 하단 */
.shape-2 {
width: 130px;
height: 130px;
background: rgba(30, 86, 160, .12);
border: 3px solid rgba(30, 86, 160, .3);
border-radius: 20px;
bottom: 90px;
left: -45px;
animation: shapeFloat2 13s ease-in-out infinite;
}
/* 3. 중간 원 — 중앙 우측 */
.shape-3 {
width: 80px;
height: 80px;
border: 3px solid rgba(255, 255, 255, .14);
border-radius: 50%;
top: 40%;
right: 12%;
animation: shapeFloat3 11s ease-in-out infinite;
}
/* 4. 둥근 사각형 테두리 — 하단 */
.shape-4 {
width: 200px;
height: 200px;
border: 3px solid rgba(30, 86, 160, .22);
border-radius: 36px;
bottom: -60px;
right: 16%;
animation: shapeFloat4 15s ease-in-out infinite;
}
/* 5. 작은 원 채움 — 상단 좌측 */
.shape-5 {
width: 44px;
height: 44px;
background: rgba(30, 86, 160, .2);
border: 2px solid rgba(30, 86, 160, .35);
border-radius: 50%;
top: 20%;
left: 16%;
animation: shapeFloat5 9s ease-in-out infinite;
}
/* 6. 세모 — 우측 중하단 */
.shape-6 {
width: 90px;
height: 90px;
background: rgba(30, 86, 160, .14);
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
bottom: 28%;
right: 6%;
animation: shapeFloat6 12s ease-in-out infinite;
}
/* King 텍스트 — 반짝이며 유동 */
.shape-king {
font-size: 30px;
font-weight: 700;
color: rgba(255, 255, 255, .9);
letter-spacing: 4px;
text-transform: none;
top: 28%;
right: 7%;
animation: kingFloat 13s ease-in-out infinite, kingSparkle 2.4s ease-in-out infinite;
white-space: nowrap;
user-select: none;
}
@keyframes shapeFloat1 {
0%, 100% { transform: translate(0, 0); }
25% { transform: translate(-22px, 32px); }
50% { transform: translate(16px, 22px); }
75% { transform: translate(-10px, -18px); }
}
@keyframes shapeFloat2 {
0%, 100% { transform: rotate(45deg) translate(0, 0); }
33% { transform: rotate(68deg) translate(22px, -26px); }
66% { transform: rotate(28deg) translate(-18px, 22px); }
}
@keyframes shapeFloat3 {
0%, 100% { transform: translate(0, 0); }
50% { transform: translate(28px, -34px); }
}
@keyframes shapeFloat4 {
0%, 100% { transform: rotate(12deg) translate(0, 0); }
40% { transform: rotate(24deg) translate(-22px, -14px); }
80% { transform: rotate(2deg) translate(18px, 10px); }
}
@keyframes shapeFloat5 {
0%, 100% { transform: translate(0, 0) scale(1); }
33% { transform: translate(16px, -20px) scale(1.2); }
66% { transform: translate(-12px, 14px) scale(0.85); }
}
@keyframes shapeFloat6 {
0%, 100% { transform: translate(0, 0) rotate(0deg); }
33% { transform: translate(-18px, -22px) rotate(20deg); }
66% { transform: translate(14px, 10px) rotate(-15deg); }
}
@keyframes shapeFloat7 {
0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
33% { transform: translate(-20px, -18px) rotate(36deg) scale(1.15); }
66% { transform: translate(14px, 16px) rotate(-18deg) scale(0.9); }
}
@keyframes kingFloat {
0%, 100% { transform: translate(0, 0); }
20% { transform: translate(-65px, 50px); }
40% { transform: translate(55px, -40px); }
60% { transform: translate(-45px, -60px); }
80% { transform: translate(70px, 30px); }
}
@keyframes kingSparkle {
0%, 100% {
text-shadow:
0 0 8px rgba(255, 255, 255, .6),
0 0 18px rgba(99, 179, 237, .5);
opacity: .75;
}
50% {
text-shadow:
0 0 16px rgba(255, 255, 255, 1),
0 0 36px rgba(99, 179, 237, 1),
0 0 56px rgba(147, 197, 253, .9),
0 0 80px rgba(59, 130, 246, .6);
opacity: 1;
}
}
/* ════════════════════════════════════════════════════
반응형
════════════════════════════════════════════════════ */
@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; }
}