/* ============================================================
   login.css — MEDIA PASS v2 ログイン画面
   （モックアップ「ログイン _ ZIKUX MEDIA PASS.html」の <style> をそのまま外部化）
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:       #0097E0;
  --accent-hover: #0079c0;
  --accent-dark:  #004E75;
  --text:         #2d2d2d;
  --text-light:   #777777;
  --input-border: #aab4bd;
  --radius:       6px;
}

body {
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: #252729;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.login-wrap {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.login-card {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.12);
  padding: 44px 40px 36px;
}

.login-logo {
  text-align: center;
  background: #0f172a;
  margin: -44px -40px 28px;
  padding: 28px 40px;
  border-radius: 10px 10px 0 0;
  border-bottom: 2px solid #0097E0;
}
.login-logo-img {
  height: 36px;
  width: auto;
}

.login-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
  color: #0f172a;
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #4a5568;
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,151,224,.12);
}
.form-group input::placeholder { color: #a0aec0; }
.form-group input.iserr { border-color: #c53030; background: #fff5f5; }
.form-group .err { display: block; color: #c53030; font-size: 12px; margin-top: 4px; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle { position: absolute; top: 0; right: 4px; height: 44px; width: 34px; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; color: #a0aec0; padding: 0; }
.pw-toggle:hover { color: var(--accent); }
.pw-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-toggle .icon-off { display: none; }
.pw-toggle.on .icon-on  { display: none; }
.pw-toggle.on .icon-off { display: block; }

.alert.alert-err {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #feb2b2;
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 13px;
}

.btn-login {
  display: block;
  width: 100%;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 24px;
  transition: background .18s;
}
.btn-login:hover { background: var(--accent-hover); }

.login-links {
  margin-top: 20px;
  text-align: center;
  font-size: .85rem;
  line-height: 2.1;
  color: var(--text-light);
}
.login-links a { color: var(--accent-dark); }

.login-copy {
  font-size: 12px;
  color: #64748b;
}

/* 利用規約（既存機能。モックアップにはないため同系統のトーンで追加） */
.terms-check label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.terms-check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
