@charset "UTF-8";

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --accent: #3b7df8;
  --accent-hover: #2563eb;
  --border: #e5e7eb;
  --text-1: #111827;
  --text-2: #6b7280;
  --text-3: #9ca3af;
  --danger: #ef4444;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}
body {
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(1200px 600px at 15% -10%, #1e2a44 0%, transparent 60%),
              radial-gradient(1000px 700px at 110% 110%, #1d3a8a 0%, transparent 55%),
              linear-gradient(135deg, #0b1220 0%, #111827 55%, #0d1730 100%);
}

/* ===== CARD ===== */
.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0,0,0,.45), 0 6px 18px rgba(0,0,0,.25);
  padding: 36px 34px 30px;
}

/* ===== BRAND ===== */
.brand { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 26px; }
.brand-logo {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b7df8, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(59,125,248,.35);
}
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: 1px; color: var(--text-1); }
.brand-name span { color: var(--accent); }
.brand-sub { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }

/* ===== ROLE TOGGLE ===== */
.role-toggle {
  display: flex;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 22px;
}
.role-btn {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 7px;
  padding: 9px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  font-family: var(--font);
  transition: all .15s;
}
.role-btn.active { background: #fff; color: var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.1); }

/* ===== FORM ===== */
.field { margin-bottom: 14px; }
.field-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  height: 46px;
  padding: 0 12px;
  gap: 9px;
  transition: border-color .15s, box-shadow .15s;
}
.input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,125,248,.12); }
.input-wrap svg { flex-shrink: 0; color: var(--text-3); }
.input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-1);
  font-family: var(--font);
  background: transparent;
  height: 100%;
}
.input-wrap input::placeholder { color: var(--text-3); }

.form-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 20px; }
.remember { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); cursor: pointer; user-select: none; }
.remember input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.help-link { font-size: 12.5px; color: var(--accent); text-decoration: none; }
.help-link:hover { text-decoration: underline; }

.btn-signin {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: background .15s, transform .05s;
}
.btn-signin:hover { background: var(--accent-hover); }
.btn-signin:active { transform: scale(.99); }

/* ===== ALERT ===== */
.alert {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 12.5px;
  margin-bottom: 18px;
}

/* ===== FOOTER ===== */
.login-foot { text-align: center; margin-top: 22px; font-size: 11.5px; color: var(--text-3); }
