@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;500&display=swap');

:root {
  --text:#1a1a1a;
  --muted:#5a677d;
  --border:rgba(0,0,0,.08);
  --panel:rgba(255,255,255,0.55);
  --card:#ffffff;
  --gradient-bg: linear-gradient(180deg, #f6f9fc 0%, #e3e8f0 100%);
  --accent:#1e3c72;
  --accent2:#2a5298;
}

/* Layout */
html, body {
  height: 100%;
  margin: 0;
  background: var(--gradient-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  color: var(--text);
}

/* Login card */
.login-card {
  background: var(--panel);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  padding: 40px 50px;
  width: 380px;
  text-align: center;
}

.logo {
  height: 48px;
  margin-bottom: 18px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
  user-select: none;
  -webkit-user-drag: none;
}

h1 {
  font-family: 'Roboto Slab', serif;
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

/* Inputs */
input[type="text"], input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 4px rgba(42,82,152,0.25);
  outline: none;
}

/* Button */
button.btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  background-size: 200% 200%;
  border: none;
  color: white;
  padding: 10px 0;
  border-radius: 8px;
  font-family: 'Roboto Slab', serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

button.btn:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Flash messages */
.error, .success, .info {
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}
.error { background: rgba(255,80,80,0.1); color:#c33; border:1px solid rgba(255,0,0,0.25); }
.success { background: rgba(60,200,100,0.1); color:#2a7; border:1px solid rgba(0,200,80,0.25); }
.info { background: rgba(0,120,255,0.1); color:#037; border:1px solid rgba(0,120,255,0.25); }

.footer {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}
