/* ========== login.css ========== */
:root {
  --brand: #0d6a67;
  --brand-dark: #095550;
  --ink: #132224;
  --ink-soft: #495a5e;
  --line: #d1dbd8;
  --bg: #f0f4f3;
  --panel: #ffffff;
  --danger: #b91c1c;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Noto Sans JP", "Segoe UI", sans-serif;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-bg {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
}
.login-orb {
  position: absolute; border-radius: 999px; filter: blur(60px); opacity: 0.45;
}
.login-orb-a { width: 420px; height: 420px; top: -100px; right: -80px; background: #8dd8d4; }
.login-orb-b { width: 500px; height: 500px; bottom: -160px; left: -130px; background: #f5d98a; }

.login-root {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px;
}

.login-card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 4px 32px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
  padding: 40px 44px 36px;
  width: 100%; max-width: 420px;
}

.login-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
  font-weight: 700; font-size: 1rem; color: var(--ink);
}

.login-title {
  font-size: 1.6rem; font-weight: 700; color: var(--ink);
  margin-bottom: 4px;
}
.login-sub {
  font-size: .875rem; color: var(--ink-soft);
  margin-bottom: 28px;
}

.login-error {
  background: #fef2f2; border: 1px solid #fecaca;
  color: var(--danger); border-radius: 8px;
  padding: 10px 14px; font-size: .875rem;
  margin-bottom: 18px;
}

.login-form { display: flex; flex-direction: column; gap: 16px; }

.field-label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: .8125rem; font-weight: 500; color: var(--ink);
}
.field-input {
  padding: 10px 14px; border-radius: 8px;
  border: 1.5px solid var(--line); background: #fafafa;
  font-size: .9375rem; font-family: inherit; color: var(--ink);
  transition: border-color .15s;
  outline: none;
}
.field-input:focus { border-color: var(--brand); background: #fff; }

.login-btn {
  margin-top: 4px; padding: 12px;
  background: var(--brand); color: #fff; border: none;
  border-radius: 8px; font-size: 1rem; font-weight: 600; font-family: inherit;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s;
}
.login-btn:hover:not(:disabled) { background: var(--brand-dark); }
.login-btn:disabled { opacity: .6; cursor: not-allowed; }

.btn-spinner { animation: spin .8s linear infinite; }
.hidden { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }

.login-hint {
  margin-top: 20px; text-align: center;
  font-size: .8125rem; color: var(--ink-soft);
}

/* ======== Quick Login ======== */
.quick-login {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.quick-login-label {
  font-size: .75rem; font-weight: 600; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 10px; text-align: center;
}
.quick-login-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ql-btn {
  flex: 1; min-width: 110px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 8px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fafafa; cursor: pointer; font-family: inherit;
  transition: border-color .15s, background .15s;
}
.ql-btn:hover { background: #fff; }
.ql-role {
  font-size: .65rem; font-weight: 700; letter-spacing: .06em;
  padding: 2px 7px; border-radius: 999px;
}
.ql-name { font-size: .875rem; font-weight: 700; color: var(--ink); }
.ql-desc { font-size: .72rem; color: var(--ink-soft); }

.ql-tenant .ql-role { background: #e6f4f3; color: #0d6a67; }
.ql-tenant:hover { border-color: #0d6a67; }

.ql-admin .ql-role { background: #eff6ff; color: #1d4ed8; }
.ql-admin:hover { border-color: #2563eb; }

.ql-kanto .ql-role { background: #f3e8ff; color: #7c3aed; }
.ql-kanto:hover { border-color: #7c3aed; }

.ql-sp001 .ql-role { background: #fff7ed; color: #c2410c; }
.ql-sp001:hover { border-color: #ea580c; }

