:root {
  --bg: #e6e8ec;
  --card: #21808b;
  --muted: #000000;
  --text: #e6eaf2;
  --primary: #4f7cff;
  --primary-press: #3b64d6;
  --ring: 0 0 0 4px rgba(79, 124, 255, .25);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 10% 10%, #e4e4e4 0%, var(--bg) 60%);
  color: var(--text);
}

.auth-wrapper {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .00)), var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
}

.brand {
  text-align: center;
  margin-bottom: 18px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px auto;
  border-radius: 14px;
  background: rgba(79, 124, 255, .12);
  font-size: 26px;
}

.brand-name {
  margin: 0;
  font-size: 24px;
  font-weight: 700
}

.brand-sub {
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 14px
}

.alert {
  background: rgba(255, 90, 90, .14);
  color: #ffd8d8;
  padding: 10px 12px;
  border: 1px solid rgba(255, 90, 90, .35);
  border-radius: 12px;
  margin: 10px 0 16px;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.form-group {
  display: grid;
  gap: 8px
}

label {
  font-size: 13px;
  color: var(--muted)
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(6, 10, 20, .6);
  color: var(--text);
  outline: none;
  transition: box-shadow .2s, border-color .2s, transform .02s;
}

input:focus {
  border-color: var(--primary);
  box-shadow: var(--ring);
}

.btn-primary {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(180deg, rgba(79, 124, 255, .95), var(--primary));
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform .02s ease-in-out, filter .15s ease-in-out;
}

.btn-primary:active {
  transform: translateY(1px);
  filter: brightness(.96)
}

.btn-primary:focus {
  outline: none;
  box-shadow: var(--ring)
}

.meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.link {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none
}

.link:hover {
  text-decoration: underline
}

.err {
  color: #ffb1b1;
  min-height: 18px
}

.foot-note {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 12px
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: lightskyblue;
  border-bottom: 1px solid #ddd;
  margin-bottom: 5px;
}

.top-header .left h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.top-header .right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-header .welcome {
  font-size: 14px;
  color: #555;
}

.logout-btn {
  background: #e74c3c;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease-in-out;
}

.logout-btn:hover {
  background: #c0392b;
}
