/* =========================================================
   T/S Total Solution 공통 스타일
   대표님 화면 시안(차량관리 Total Solution) 디자인 언어 반영
   - 네이비 + 파랑(#2563eb) + 초록(#16a34a)
   ========================================================= */

:root {
    --c-navy:   #16223c;   /* 사이드바/진한 텍스트 */
    --c-blue:   #2563eb;   /* 주요 버튼·선택·정비 */
    --c-blue-d: #1d4ed8;   /* hover */
    --c-green:  #16a34a;   /* 세차·주유·금액·보조 버튼 */
    --c-green-d:#15803d;
    --c-bg:     #eef1f6;   /* 페이지 배경 */
    --c-card:   #ffffff;
    --c-border: #e2e8f0;
    --c-text:   #1f2937;
    --c-muted:  #64748b;
    --c-danger: #dc2626;
    --radius:   12px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Noto Sans KR", "Malgun Gothic", "맑은 고딕", -apple-system, sans-serif;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}

/* ---------- 브랜드 로고 (T/S Total Solution) ---------- */
.brand { text-align: center; line-height: 1.1; }
.brand-mark {
    font-size: 34px;
    font-weight: 800;
    color: var(--c-navy);
    letter-spacing: 1px;
}
.brand-mark .slash { color: var(--c-green); }     /* 로고 포인트 초록 */
.brand-sub {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--c-muted);
    text-transform: uppercase;
}

/* ---------- 인증 화면(로그인/회원가입) 공통 ---------- */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    /* 상단은 옅은 네이비, 아래는 배경색으로 자연스러운 그라데이션 */
    background: linear-gradient(180deg, #dfe6f1 0%, var(--c-bg) 60%);
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(22, 34, 60, 0.08);
    padding: 36px 32px;
}
.auth-card.wide { max-width: 560px; }   /* 회원가입은 필드가 많아 조금 넓게 */

.auth-title {
    margin: 22px 0 4px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--c-navy);
}
.auth-desc {
    margin: 0 0 22px;
    text-align: center;
    font-size: 13px;
    color: var(--c-muted);
}

/* ---------- 입력 필드 ---------- */
.field { margin-bottom: 16px; }
.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.field .req { color: var(--c-blue); margin-left: 2px; }   /* 필수 표시 */
.field input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    color: var(--c-text);
    background: #f8fafc;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input::placeholder { color: #a4b0c0; }
.field input:focus {
    outline: none;
    background: #fff;
    border-color: var(--c-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.field input[type="file"] {
    height: auto;
    padding: 9px 12px;
    background: #f8fafc;
}
.field .err { display: block; margin-top: 6px; font-size: 12px; color: var(--c-danger); }

/* 2열 그리드 (회원가입 — 넓은 화면에서만) */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 480px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- 버튼 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 46px;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
}
.btn-primary { width: 100%; background: var(--c-blue); color: #fff; }
.btn-primary:hover { background: var(--c-blue-d); }
.btn-ghost { background: #eef2f8; color: var(--c-navy); }
.btn-ghost:hover { background: #e2e8f2; }

/* ---------- 메시지 / 알림 ---------- */
.alert {
    margin-bottom: 18px;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}
.alert-ok   { background: #e8f6ee; color: var(--c-green-d); border: 1px solid #bfe6cd; }
.alert-err  { background: #fdecec; color: var(--c-danger);  border: 1px solid #f6c9c9; }

/* ---------- 하단 보조 링크 ---------- */
.auth-foot {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--c-border);
    text-align: center;
    font-size: 13px;
    color: var(--c-muted);
}
.auth-foot a { color: var(--c-blue); font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

/* =========================================================
   홈(로그인 후) — 대시보드 톤의 헤더 + 환영 카드
   ========================================================= */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 24px;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
}
.topbar .brand { text-align: left; display: flex; align-items: baseline; gap: 8px; }
.topbar .brand-mark { font-size: 22px; }
.topbar .brand-sub { margin: 0; font-size: 11px; letter-spacing: 2px; }
.topbar .user { font-size: 14px; color: var(--c-muted); }
.topbar .user b { color: var(--c-navy); }
.topbar form { display: inline; margin-left: 14px; }
.topbar .btn-ghost { height: 36px; font-size: 13px; }

.page {
    max-width: 960px;
    margin: 28px auto;
    padding: 0 20px;
}
.page-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.page-head .bar { width: 5px; height: 22px; background: var(--c-blue); border-radius: 3px; }
.page-head h1 { margin: 0; font-size: 22px; font-weight: 800; color: var(--c-navy); }

.card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 4px 14px rgba(22, 34, 60, 0.04);
}
.welcome { font-size: 18px; }
.welcome b { color: var(--c-blue); }
.muted { color: var(--c-muted); font-size: 14px; }
