/* =========================
   Zyltron Login (alineado al index)
   ========================= */
:root {
  --bg:#f6f7fb;
  --ink:#111217;
  --muted:#6b7280;
  --card:#ffffff;
  --stroke:#e7e7ee;

  --black:#0f1013;
  --accent:#111; /* botones principales */
  --blue:#2563eb;

  --radius:16px;
  --shadow:0 10px 24px rgba(17,18,23,.06);
  --shadow-lg:0 18px 40px rgba(17,18,23,.10);
  --ring:0 0 0 3px rgba(17,18,23,.12);
}

*{box-sizing:border-box}
html,body{height:100%}
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.auth-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--stroke);
  opacity: 0;
  animation: fadeUp .7s ease forwards;
}

.auth-card h1 {
  font-weight: 800;
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Inputs */
input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  outline: none;
  background: #fafafa;
  color: var(--ink);
  font-size: 14px;
  transition: border .2s ease, box-shadow .2s ease, background .2s ease;
}
input:focus {
  border-color: var(--black);
  background: #fff;
  box-shadow: var(--ring);
}

/* Password toggle */
.password-wrap {
  position: relative;
  width: 100%;
}
.password-wrap input {
  padding-right: 40px; /* espacio para el botón 👁 */
}
.password-wrap button {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.6;
}
.password-wrap button:hover {
  opacity: 1;
}

/* Botones */
.btn {
  cursor: pointer;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.btn.full { width: 100%; }

.btn.full {
  background: var(--black);
  color: #fff;
}
.btn.full:hover {
  background: #1b1e24;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Google */
.google-btn {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.google-btn .icon {
  width: 20px;
  height: 20px;
}
.google-btn:hover {
  background: #f9f9f9;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--muted);
  margin: 1.2rem 0;
  font-size: 14px;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--stroke);
}
.divider:not(:empty)::before { margin-right: 0.75em; }
.divider:not(:empty)::after { margin-left: 0.75em; }

/* Registro */
.register-text {
  margin-top: 1rem;
  font-size: 13px;
  color: var(--muted);
}
.register-text a {
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
}
.register-text a:hover { text-decoration: underline; }

/* Error message */
.error-msg {
  color: #e53935;
  font-size: 13px;
  margin: 8px 0 0;
  text-align: left;
}

/* Animación */
@keyframes fadeUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
