/* 인증 전용 — 로그인·비밀번호 등 (콘솔 레이아웃과 분리, ERP 톤) */

:root {
  --erp-bg: #e8ecf1;
  --erp-aside: #0f172a;
  --erp-aside-muted: #94a3b8;
  --erp-aside-border: #1e293b;
  --erp-surface: #ffffff;
  --erp-border: #cbd5e1;
  --erp-text: #0f172a;
  --erp-muted: #64748b;
  --erp-accent: #0d9488;
  --erp-accent-hover: #0f766e;
  --erp-danger: #b91c1c;
}

.auth-erp-root.auth-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "IBM Plex Sans KR", "Noto Sans KR", system-ui, sans-serif;
  color: var(--erp-text);
  background: var(--erp-bg);
}

/* 인증 UI 밀도: 위젯/버튼 sm 기준 통일 */
.auth-app .form-control,
.auth-app .form-select,
.auth-app .input-group-text {
  font-size: 0.875rem;
  padding: 0.4rem 0.65rem;
}

.auth-app .btn {
  --bs-btn-font-size: 0.875rem;
  --bs-btn-padding-y: 0.4rem;
  --bs-btn-padding-x: 0.65rem;
}

@media (min-width: 768px) {
  .auth-erp-root.auth-app {
    flex-direction: row;
  }
}

/* 좌측 정보 패널 */
.auth-erp-aside {
  flex-shrink: 0;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  border-bottom: 1px solid var(--erp-aside-border);
}

@media (min-width: 768px) {
  .auth-erp-aside {
    width: min(320px, 34vw);
    min-height: 100vh;
    border-bottom: none;
    border-right: 1px solid #334155;
  }
}

.auth-erp-aside-inner {
  padding: 1.75rem 1.5rem;
}

.auth-erp-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.auth-erp-brand-mark {
  width: 10px;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 2px;
  background: var(--erp-accent);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.35);
}

.auth-erp-brand-title {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.auth-erp-brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--erp-aside-muted);
  margin-top: 0.2rem;
}

.auth-erp-aside-desc {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--erp-aside-muted);
  margin-bottom: 1rem;
}

.auth-erp-aside-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.auth-erp-aside-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.auth-erp-aside-list .bi {
  color: var(--erp-accent);
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.auth-erp-aside-meta {
  font-size: 0.65rem;
  color: #64748b;
  letter-spacing: 0.08em;
}

/* 우측 본문 */
.auth-erp-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.auth-erp-topbar {
  flex-shrink: 0;
  background: var(--erp-surface);
  border-bottom: 1px solid var(--erp-border);
}

.auth-erp-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
}

.auth-erp-env-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.auth-erp-topbar-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  font-size: 0.78rem;
}

.auth-erp-topbar-nav a {
  color: var(--erp-muted);
  text-decoration: none;
  font-weight: 500;
}

.auth-erp-topbar-nav a:hover {
  color: var(--erp-accent);
}

.auth-erp-topbar-sep {
  color: var(--erp-border);
  user-select: none;
}

.auth-erp-main {
  flex: 1;
  padding: 1.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-erp-panel {
  width: 100%;
  max-width: 440px;
  background: var(--erp-surface);
  border: 1px solid var(--erp-border);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  padding: 1.75rem 1.5rem;
}

.auth-erp-footer {
  flex-shrink: 0;
  padding: 0.75rem 1.25rem;
  font-size: 0.7rem;
  color: var(--erp-muted);
  background: #f1f5f9;
  border-top: 1px solid var(--erp-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.auth-erp-footer-sep {
  color: var(--erp-border);
}

/* 폼 블록 */
.auth-erp-form-header {
  margin-bottom: 0.25rem;
}

.auth-erp-form-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.auth-erp-form-lead {
  line-height: 1.5;
}

.auth-erp-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--erp-muted);
  margin-bottom: 0.25rem;
}

.auth-erp-form .form-control,
.auth-app .card-auth .form-control {
  border-radius: 3px;
  border: 1px solid var(--erp-border);
  background: #f8fafc;
  font-size: 0.9rem;
  padding: 0.5rem 0.65rem;
}

.auth-erp-form .form-control:focus,
.auth-app .card-auth .form-control:focus {
  border-color: var(--erp-accent);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
  background: #fff;
}

.btn-auth-primary {
  background: var(--erp-accent);
  border: 1px solid var(--erp-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 3px;
}

.btn-auth-primary:hover {
  background: var(--erp-accent-hover);
  border-color: var(--erp-accent-hover);
  color: #fff;
}

.auth-erp-link {
  color: var(--erp-accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-erp-link:hover {
  color: var(--erp-accent-hover);
  text-decoration: underline;
}

.auth-erp-toolbar {
  border-color: var(--erp-border) !important;
}

.auth-erp-footnote {
  font-size: 0.75rem;
}

/* 안내 테이블 */
.auth-erp-table {
  border-color: var(--erp-border) !important;
  font-size: 0.8125rem;
}

.auth-erp-th {
  background: #f1f5f9 !important;
  color: var(--erp-muted) !important;
  font-weight: 600;
  vertical-align: middle;
}

.auth-erp-alert {
  max-width: 440px;
  width: 100%;
  border-radius: 3px;
  font-size: 0.8125rem;
}

/* 레거시 카드 페이지(프로필 등)와 호환 */
.auth-app .card-auth {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  background: var(--erp-surface);
  border: 1px solid var(--erp-border);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.auth-app .card-auth.wide {
  max-width: 520px;
}

.auth-app .card-auth .auth-card-title,
.auth-app .card-auth h1 {
  font-size: 1.125rem;
  font-weight: 700;
}

.auth-app .card-auth .btn-primary {
  background: var(--erp-accent);
  border-color: var(--erp-accent);
}

.auth-app .card-auth .btn-primary:hover {
  background: var(--erp-accent-hover);
  border-color: var(--erp-accent-hover);
}

.auth-app .card-auth a:not(.btn) {
  color: var(--erp-accent);
  font-weight: 600;
}

.auth-login-stack {
  min-height: auto;
  display: block;
}

.auth-page-hero {
  display: none;
}

/* 로그인 전용: 좌측 안내·상단 네비 없음, 중앙 정렬 */
.auth-login-only.auth-app {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  font-family: "IBM Plex Sans KR", "Noto Sans KR", system-ui, sans-serif;
  color: var(--erp-text);
  background: var(--erp-bg);
}

.auth-login-only-inner {
  width: 100%;
  max-width: 480px;
}

.auth-login-panel.auth-erp-panel {
  max-width: 100%;
}

.auth-login-brand .auth-erp-brand-mark {
  vertical-align: middle;
}
