/* Auth page styles */
:root {
  --bg: #0f172a;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #22c55e;
  --primary-700: #16a34a;
  --border: #1f2937;
  --alert: #ef4444;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
  background:
    linear-gradient(rgba(15,23,42,0.75), rgba(15,23,42,0.75)),
    url('/assets/fondo.webp') center / cover no-repeat fixed;
  color: var(--text);
}

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, #0f172a 0%, var(--card) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  padding: 28px;
}

.auth-header {
  text-align: center;
  margin-bottom: 16px;
}
.auth-logo {
  width: 72px;
  height: 72px;
  display: block;
  margin: 0 auto 8px;
}
.auth-header h1 {
  margin: 4px 0 6px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.auth-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.35);
  color: #fecaca;
  padding: 10px 12px;
  border-radius: 8px;
  margin: 12px 0 4px;
}

.auth-form { margin-top: 12px; }
.form-field { margin-bottom: 14px; }
label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--muted); }
input[type="text"], input[type="password"] {
  width: 100%;
  background: #0b1324;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 12px;
  outline: none;
}
input::placeholder { color: #6b7280; }
input:focus { border-color: #334155; box-shadow: 0 0 0 3px rgba(51,65,85,0.35); }

.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 42px; }
.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  padding: 6px;
}
.toggle-password:hover { color: var(--text); }

.form-actions {
  display: flex;
  margin-top: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.btn.primary { background: var(--primary); color: #05270e; border-color: #16a34a; }
.form-actions .btn.primary { width: 100%; }
.btn.primary:hover { background: var(--primary-700); color: #031b09; }
.btn.ghost { background: transparent; color: var(--text); }
.btn.ghost:hover { background: #0b1324; }

.auth-footer { text-align: center; margin-top: 16px; color: var(--muted); }
