/* =====================================================
   FILE  : style.css
   OWNER : login.php 전용
   LOAD  : login.php에서만 link
   SCOPE : 로그인 페이지 전용
   ===================================================== */

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

body {
  font-family: 'Apple SD Gothic Neo','Pretendard','Noto Sans KR',-apple-system,sans-serif;
  background: #dde2eb;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  position: relative;
}

/* 좌상→우하 그라데이션 오버레이 */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.4) 0%, transparent 50%, rgba(15,30,60,.10) 100%);
}

/* SVG 격자 배경 */
.bg-svg {
  position: fixed; inset: 0; pointer-events: none; opacity: .7;
}

/* ── 좌상단 배지 ── */
.badge {
  position: fixed; top: 26px; left: 28px;
  display: flex; align-items: center; gap: 8px; z-index: 10;
}
.badge-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #1f5fc8;
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }
.badge-text {
  font-size: 10px; font-weight: 700;
  color: #7a8aa0; letter-spacing: 2.5px; text-transform: uppercase;
}

/* ── 우상단 시계 ── */
.clock {
  position: fixed; top: 22px; right: 28px;
  text-align: right; z-index: 10;
}
.clock-t {
  font-size: 17px; font-weight: 700;
  color: #0b1f3a; letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}
.clock-d {
  font-size: 10px; font-weight: 600;
  color: #5a6a82; letter-spacing: .8px; margin-top: 3px;
}

/* ── 카드 ── */
.card {
  position: relative; z-index: 1;
  width: 100%; max-width: 500px;
  background: #fff;
  border-radius: 2px;
  border-left: 3px solid #1f5fc8;
  box-shadow:
    0 2px 4px rgba(15,35,70,.08),
    0 16px 40px rgba(15,35,70,.18),
    0 48px 120px rgba(15,35,70,.24);
  padding: 48px 88px 42px;
}

/* ── 로고 ── */
.logo { display: flex; align-items: baseline; margin-bottom: 6px; }
.logo-sj { font-size: 36px; font-weight: 800; color: #1f5fc8; letter-spacing: -1.5px; }
.logo-hub { font-size: 36px; font-weight: 800; color: #0b1f3a; letter-spacing: -1.5px; }

/* ── 포인트 선 ── */
.accent-line {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, #1f5fc8 0%, rgba(31,95,200,.12) 55%, transparent);
  margin: 18px 0 20px;
}

/* ── 회사명 ── */
.co { margin-bottom: 32px; }
.co-name {
  font-size: 26px; font-weight: 800;
  color: #162035; letter-spacing: -1px;
  margin-bottom: 6px; white-space: nowrap; line-height: 1.1;
}
.co-name span { font-size: 20px; font-weight: 800; }
.co-en {
  font-size: 11.5px; font-weight: 600;
  color: #9aafc6;
  letter-spacing: 0px;
  text-transform: uppercase;
  display: block;
}

/* ── 에러 박스 ── */
.error-box {
  padding: 11px 15px;
  border-left: 3px solid;
  font-size: 13px; font-weight: 600;
  margin-bottom: 20px;
  border-radius: 0 3px 3px 0;
}
.error-box.warn { background: #fff8e1; border-color: #a85a00; color: #a85a00; }
.error-box.err  { background: #fbe8e8; border-color: #a52828; color: #a52828; }

/* ── 폼 ── */
.form { display: flex; flex-direction: column; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 10.5px; font-weight: 700; color: #5a6a82; letter-spacing: .4px; }
.input {
  height: 44px; padding: 0 15px;
  border: 1.5px solid #cdd7e6; border-radius: 2px;
  font-family: inherit; font-size: 14px; font-weight: 500;
  color: #162035; background: #f7f9fc;
  outline: none; transition: all .15s;
}
.input:focus {
  border-color: #1f5fc8; background: #fff;
  box-shadow: 0 0 0 3px rgba(31,95,200,.08);
}
.input.is-error { border-color: #a52828; background: #fdf5f5; }
.input::placeholder { color: #9aabbf; font-weight: 400; }

/* ── 아이디 저장 ── */
.save-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: -2px;
}
.save-cb {
  width: 15px; height: 15px;
  border: 1.5px solid #cdd7e6; border-radius: 2px;
  cursor: pointer; accent-color: #1f5fc8; flex-shrink: 0;
}
.save-label {
  font-size: 11.5px; font-weight: 600;
  color: #5a6a82; cursor: pointer; user-select: none;
}

/* ── 로그인 버튼 ── */
.btn {
  height: 46px; margin-top: 2px;
  background: #0b1f3a; border: none; border-radius: 2px;
  color: #fff; font-family: inherit;
  font-size: 14px; font-weight: 800; letter-spacing: .5px;
  cursor: pointer; transition: background .2s;
}
.btn:hover { background: #1f5fc8; }
.btn:disabled { opacity: .7; cursor: not-allowed; }

/* ── 하단 ── */
.foot {
  margin-top: 22px; padding-top: 17px;
  border-top: 1px solid #edf1f7;
  display: flex; justify-content: space-between; align-items: center;
}
.foot-l { font-size: 11px; font-weight: 600; color: #5a6a82; }
.foot-r { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; color: #aabbd0; }
.foot-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: #1f5fc8; animation: blink 2s infinite;
}

/* ── 버전 ── */
.ver {
  position: fixed; bottom: 18px; left: 50%;
  transform: translateX(-50%);
  font-size: 10px; font-weight: 600;
  color: #8a96a8; letter-spacing: 2px; white-space: nowrap;
}

