/* login.css — pantalla de login moderna con Material Icons */

.auth-wrap {
  min-height: calc(100dvh - 64px); /* descuenta la topbar aproximada */
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--card, #1b1b1b);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.auth-brand {
  display: grid;
  place-items: center;
  gap: 8px;
  margin-bottom: 12px;
  text-align: center;
}
.auth-logo { border-radius: 16px; }
.auth-title { margin: 0; font-size: 1.4rem; }
.auth-sub { margin: 0; color: var(--muted, #9aa0a6); }

.auth-alert {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  background: #3b1c1c;
  border: 1px solid #5a2a2a;
  color: #ffdede;
  padding: 10px 12px;
  border-radius: 10px;
  margin: 8px 0 12px;
}
.auth-alert .material-symbols-rounded { font-size: 20px; }

.auth-form { display: grid; gap: 12px; }

.field {
  position: relative;
  display: grid;
  gap: 6px;
}
.field-label {
  font-size: .95rem;
  color: var(--muted, #9aa0a6);
}
.field input {
  width: 100%;
  padding: 12px 44px 12px 40px; /* deja espacio para iconos */
  border-radius: 12px;
  border: 1px solid #3a3a3a;
  background: #1b1b1b;
  color: var(--fg, #f6f6f6);
  font-size: 1rem;
}
.field-icon {
  position: absolute;
  left: 12px; top: 36px;
  font-size: 20px; line-height: 1;
  color: var(--muted, #9aa0a6);
}
.field-trailing {
  position: absolute;
  right: 8px; top: 32px;
  background: transparent; border: none; color: var(--muted, #9aa0a6);
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center;
}
.field-trailing:focus-visible { outline: 2px solid #2684FF; outline-offset: 2px; }
.field-trailing .material-symbols-rounded { font-size: 20px; }

.auth-submit {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px;
  border-radius: 12px;
}

.auth-note { text-align: center; margin: 8px 0 0; color: var(--muted, #9aa0a6); }
