/* 이미지 분리기능 로그인 화면. 이미지 분리 화면(ui.html)과 같은 색을 쓴다. */
:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --line: #e4eaf2;
  --line-strong: #d5deea;
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #eff6ff;
  --shadow: 0 18px 45px rgba(15, 23, 42, .08);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  font-family: "Noto Sans", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 320px);
}

.sp-wrap {
  min-height: 100vh;
  min-height: 100dvh;   /* 모바일 주소창을 뺀 높이 */
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 20px;
}

.sp-brand { text-align: center; margin-bottom: 26px; }
.sp-logo {
  width: 56px; height: 56px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, var(--accent-strong) 100%);
  box-shadow: 0 12px 26px rgba(37, 99, 235, .28);
}
.sp-title { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.sp-sub { margin: 0; color: var(--muted); font-size: 13px; }

.sp-card {
  width: 100%; max-width: 420px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 34px 34px 28px;
}
.sp-card-title { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.sp-card-desc { margin: 0 0 22px; color: var(--muted); font-size: 13px; }

.sp-notice {
  margin: 0 0 18px; padding: 10px 14px; border-radius: 8px;
  background: var(--accent-soft); border: 1px solid #cfe0ff; color: var(--accent-strong);
  font-size: 13px; line-height: 1.5;
}

.sp-form { display: grid; gap: 16px; }
.sp-field label { display: block; margin-bottom: 7px; color: #64748b; font-size: 12px; font-weight: 650; }
.sp-field input {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--text); font-size: 14px;
  outline: none; transition: border-color .14s ease, box-shadow .14s ease;
}
.sp-field input:focus { border-color: #93b4ff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.sp-field input::placeholder { color: #a3aebd; }

.sp-pw { position: relative; }
.sp-pw input { padding-right: 64px; }
.sp-pw-toggle {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent;
  color: var(--muted); font-size: 12px; font-weight: 650; cursor: pointer;
}
.sp-pw-toggle:hover { background: #f1f5f9; color: var(--accent); }

.sp-check { display: flex; align-items: center; gap: 8px; color: #526170; font-size: 13px; cursor: pointer; }
.sp-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }

.sp-btn {
  height: 46px; border: 0; border-radius: 8px; background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 750; cursor: pointer;
  transition: background .14s ease, box-shadow .14s ease, transform .14s ease;
}
.sp-btn:hover { background: var(--accent-strong); box-shadow: 0 10px 22px rgba(37, 99, 235, .2); transform: translateY(-1px); }

.sp-links {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 13px;
}
.sp-links a { color: var(--muted); text-decoration: none; }
.sp-links a:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 480px) {
  .sp-wrap { justify-content: flex-start; padding: 40px 16px 28px; }
  .sp-brand { margin-bottom: 20px; }
  .sp-card { padding: 26px 20px 22px; }
  .sp-title { font-size: 21px; }
  .sp-field input { font-size: 16px; }   /* 16px 미만이면 iOS 가 입력할 때 화면을 확대한다 */
  .sp-links { gap: 8px 14px; }
}
