/* ═══════════════════════════════════════════════════════════════
   PizzeriApp — Auth/Login Design v2.0
   Premium centered glassmorphism card
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --brand: #E6403A;
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --input-bg: rgba(255,255,255,0.05);
  --input-border: rgba(255,255,255,0.1);
  --card-bg: rgba(30, 41, 59, 0.7);
}

html:has(body.auth-body),
body.auth-body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

body.auth-body {
  font-family: 'Inter', sans-serif;
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: radial-gradient(circle at top right, #1e293b, var(--bg-darker)), var(--bg-darker);
  color: var(--text-main);
  box-sizing: border-box;
}

body.auth-body *,
body.auth-body *::before,
body.auth-body *::after {
  box-sizing: border-box;
}

/* Sutil efecto de luz en el fondo */
body.auth-body::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%;
  width: 50%; height: 50%;
  background: radial-gradient(circle, rgba(230,64,58,0.15) 0%, transparent 60%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.auth-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 20px;
  animation: fadeIn 0.6s cubic-bezier(.4,0,.2,1);
}

.auth-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.brand-header {
  text-align: center;
  margin-bottom: 32px;
}

.brand-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #E6403A, #ff6b5a);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(230,64,58,0.3);
}
.brand-icon svg { width: 32px; height: 32px; fill: #fff; }

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.auth-input-group {
  margin-bottom: 20px;
  position: relative;
}
.auth-input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.auth-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 12px 16px 12px 42px;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.auth-input:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 4px rgba(230,64,58,0.15);
}
.auth-input::placeholder { color: rgba(255,255,255,0.3); }

.input-icon {
  position: absolute;
  bottom: 12px; left: 14px;
  width: 18px; height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.auth-eye {
  position: absolute;
  bottom: 10px; right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.auth-eye:hover { color: #fff; }
.auth-eye svg { width: 18px; height: 18px; }

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 0.85rem;
}
.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  cursor: pointer;
}
.auth-checkbox input { accent-color: var(--brand); width: 16px; height: 16px; }
.auth-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.auth-link:hover { color: #ff6b5a; }

.btn-auth {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--brand), #c9302a);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(230,64,58,0.3);
}
.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,64,58,0.4);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 24px;
  text-align: center;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .auth-card { padding: 30px 20px; }
}
