:root{
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --brand: #111827;
  --primary: #374151;
  --primary-hover: #111827;
  --focus: #2563eb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, -apple-system, Segoe UI, Roboto, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.wrap{
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.login-card{
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 32px 28px;
  text-align: center;
}

.brand{
  margin: 0 0 6px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--brand);
}

.subtitle{
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
}

.logo{
  margin: 0 auto 20px;
  max-width: 240px;
}

.logo img{
  display: block;
  width: 100%;
  height: auto;
}

/* 이미지 자리 표시용 */
.logo-placeholder{
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 2px dashed var(--border);
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
  user-select: none;
}

.form{
  display: grid;
  gap: 12px;
  margin: 12px 0 14px;
  text-align: left;
}

.field{
  display: grid;
  gap: 6px;
}

.label-text{
  font-size: 13px;
  color: var(--muted);
}

input{
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input::placeholder{ color: #9ca3af; }

input:focus{
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.btn-primary{
  margin-top: 6px;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, transform .02s ease;
}

.btn-primary:hover{ background: var(--primary-hover); }
.btn-primary:active{ transform: translateY(1px); }

.aux-links{
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.aux-links a{
  color: var(--muted);
  text-decoration: none;
}

.aux-links a:hover{
  text-decoration: underline;
}

.divider{ opacity: .4; }

/* 작은 화면 최적화 */
@media (max-width: 380px){
  .brand{ font-size: 34px; }
  .login-card{ padding: 32px 20px 24px; }
}
