@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Variables (same as main app) --- */
:root {
  --primary: #0891B2;
  --primary-light: #22D3EE;
  --primary-dark: #155E75;
  --bg: #F8FAFC;
  --bg-card: #FFFFFF;
  --text: #1E293B;
  --text-muted: #64748B;
  --border: #CBD5E1;
  --border-light: #E2E8F0;
  --danger: #DC2626;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: 200ms ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* --- Login Card --- */
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  width: 100%;
  max-width: 360px;
}

/* --- Title --- */
h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-align: center;
}

h1::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* --- Form --- */
.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

/* --- Hint --- */
.hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --- Checkbox --- */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
}

/* --- Button --- */
.btn-login {
  width: 100%;
  padding: 0.65rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}

.btn-login:hover {
  background: var(--primary-dark);
}

.btn-login:active {
  transform: scale(0.99);
}

.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- Error Message --- */
.error-message {
  display: none;
  color: var(--danger);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 1rem;
}

.error-message.visible {
  display: block;
}

/* --- Links --- */
.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.login-links a {
  font-size: 0.8rem;
  color: var(--primary);
  text-decoration: none;
}

.login-links a:hover {
  text-decoration: underline;
}

/* --- Status Message --- */
.status-message {
  display: none;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
}

.status-message.visible {
  display: block;
}

.status-message.success {
  color: #065F46;
  background: #D1FAE5;
}

.status-message.info {
  color: var(--primary-dark);
  background: #E0F2FE;
}

/* --- Trust indicators --- */
.trust-indicators {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light, #eee);
  font-size: 0.72rem;
  color: #666;
}
.trust-indicators span { white-space: nowrap; }

/* --- Footer --- */
.app-footer { text-align: center; padding: 16px; font-size: 13px; color: #888; position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 0.5rem; align-items: center; }
.app-footer a { color: var(--primary); text-decoration: none; }
.app-footer a:hover { text-decoration: underline; }
.footer-sep { color: #ccc; }

/* --- Responsive --- */
@media (max-width: 400px) {
  .login-card {
    padding: 1.5rem;
  }
}
