:root {
  --navy: #1b3a5a;
  --navy-deep: #142a42;
  --indigo-bg-1: #20306b;
  --indigo-bg-2: #111a3f;
  --electric: #2bb6dd;
  --electric-strong: #00a8d6;
  --text-dark: #1b3a5a;
  --text-muted: #5b6b80;
  --border: #d6dce4;
  --border-focus: #2bb6dd;
  --danger: #c0392b;
  --danger-bg: #fdecea;
  --success: #1e7d4f;
  --success-bg: #e8f6ee;
  --card-radius: 18px;
  --input-radius: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: radial-gradient(120% 120% at 50% 0%, var(--indigo-bg-1) 0%, var(--indigo-bg-2) 70%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 48px 20px 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  color: #cfd8e6;
}

.brand .logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.brand .tagline {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #aab6cc;
}

.card {
  background: #ffffff;
  width: 100%;
  max-width: 460px;
  border-radius: var(--card-radius);
  padding: 40px 38px 36px;
  box-shadow: 0 24px 60px rgba(8, 14, 35, 0.35);
}

.card.wide { max-width: 560px; }

.card h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  margin: 0 0 6px;
  color: var(--navy);
}

.card .subtitle {
  margin: 0 0 26px;
  color: var(--text-muted);
  font-size: 15px;
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 8px;
}

.field label .req { color: var(--danger); margin-left: 3px; }

.input-wrap { position: relative; }

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  color: var(--text-dark);
  border: 1px solid var(--border);
  border-radius: var(--input-radius);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(43, 182, 221, 0.18);
}

input[readonly] { background: #f4f6f9; color: var(--text-muted); }

.toggle-pw {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  padding: 6px;
  line-height: 1;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -6px 0 18px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--navy);
  margin: 4px 0 20px;
}

.link {
  color: var(--electric-strong);
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
}
.link:hover { text-decoration: underline; }

.btn {
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 15px 18px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  border-radius: var(--input-radius);
  background: linear-gradient(90deg, #5bb8e8 0%, #2c7fb8 55%, var(--navy) 100%);
  transition: filter 0.15s ease, transform 0.05s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--border);
}

.alert {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
}
.alert.show { display: block; }
.alert.error { background: var(--danger-bg); color: var(--danger); border: 1px solid #f5c6c2; }
.alert.success { background: var(--success-bg); color: var(--success); border: 1px solid #c2e6d2; }

.hint-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.hint-list li { margin: 3px 0; padding-left: 18px; position: relative; }
.hint-list li::before { content: "○"; position: absolute; left: 0; }
.hint-list li.ok { color: var(--success); }
.hint-list li.ok::before { content: "●"; }

.meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.footer-note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.dashboard-card .who {
  background: #f4f6f9;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 6px 0 26px;
}
.dashboard-card .who .email { font-weight: 600; color: var(--navy); font-size: 16px; }
.dashboard-card .who .role { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

.role-badge {
  display: inline-block;
  background: rgba(43, 182, 221, 0.15);
  color: var(--electric-strong);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.link-block {
  word-break: break-all;
  background: #f4f6f9;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--navy);
  margin-top: 6px;
}

.spacer-sm { height: 10px; }
.muted-link { color: var(--text-muted); font-size: 13px; }
