/* ==========================================================================
   다온ERP (DaonERP) 전역 통합 스타일시트 (Single Source of Truth)
   인라인 <style> 삽입 금지 규칙 준수
   ========================================================================== */

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --sidebar-width: 250px;
  --touch-target-height: 48px;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
}

/* ==========================================================================
   로그인 페이지 전용 스타일
   ========================================================================== */
.login-body {
  background: var(--bg-gradient);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0;
  padding: 16px;
  box-sizing: border-box;
}

/* Somee 무료 플랜 자동 주입 광고 하단 고정 정리 */
body > center,
div[style*="height: 65px;"],
div[onmouseover*="S_ssac()"] {
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
  font-size: 11px;
  color: #94a3b8 !important;
  z-index: 10;
}

body > center a {
  color: #64748b !important;
  text-decoration: none;
  font-size: 11px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  padding: 40px 32px;
  transition: all 0.3s ease;
}

.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #eff6ff;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}

.login-card .form-floating > .form-control {
  height: 52px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.login-card .form-floating > .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-login {
  height: var(--touch-target-height);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  background-color: var(--primary-color);
  border: none;
  transition: background-color 0.2s ease;
}

.btn-login:hover {
  background-color: var(--primary-hover);
}

.login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

/* ==========================================================================
   반응형 멀티 디바이스 유틸리티
   ========================================================================== */
@media (max-width: 767.98px) {
  .d-pc-only {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .d-mobile-cards {
    display: none !important;
  }
}
