:root {
  --bg: #eef5fb;
  --ink: #0d4e89;
  --muted: #5c7697;
  --line: #d5e3f0;
  --card: #ffffff;
  --navy: #0d4e89;
  --blue: #1f6fb2;
  --cyan: #3fa3d6;
  --sky: #7cc6e6;
  --green: #2f8f6b;
  --amber: #f4ba00;
  --shadow-lg: 0 24px 70px rgba(13, 78, 137, 0.12);
  --shadow-md: 0 14px 34px rgba(13, 78, 137, 0.1);
  --shadow-sm: 0 8px 18px rgba(13, 78, 137, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(63, 163, 214, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(13, 78, 137, 0.1), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.auth-shell {
  width: min(460px, 100%);
  border: 1px solid rgba(216, 228, 239, 0.7);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.auth-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(216, 228, 239, 0.72);
  background: rgba(248, 251, 253, 0.92);
}

.auth-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c7d3e0;
}

.auth-surface {
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(63, 163, 214, 0.16), transparent 26%),
    linear-gradient(180deg, #f7fbfe 0%, #edf6fb 100%);
}

.auth-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 20px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 58px;
  height: auto;
  flex: 0 0 auto;
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
  color: var(--ink);
}

.brand-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.auth-card {
  padding: 24px;
  border: 1px solid rgba(213, 227, 240, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-md);
}

.auth-card h1 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  line-height: 1.05;
}

.section-copy {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

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

.field + .field {
  margin-top: 16px;
}

.field label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.auth-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  color: #3f5777;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(63, 163, 214, 0.14);
}

.auth-error {
  margin-top: 6px;
  color: #b42318;
  font-size: 0.84rem;
  font-weight: 600;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.check-wire {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.check-wire input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.helper-link {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.helper-link:hover {
  color: var(--navy);
}

.login-button {
  width: 100%;
  height: 54px;
  margin-top: 20px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(13, 78, 137, 0.18);
  filter: saturate(1.05);
}

.login-button:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(63, 163, 214, 0.2);
}

.role-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #e3f2fa;
  color: #1f6fb2;
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-status {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #e8f5ee;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 700;
}

@media (max-width: 540px) {
  .auth-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .login-options {
    flex-direction: column;
    align-items: flex-start;
  }
}
