/* ═══════════════════════════════
   LOGIN
   ═══════════════════════════════ */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 15% -10%, rgba(249, 115, 22, .18), transparent 55%),
    radial-gradient(900px 600px at 110% 110%, rgba(234, 88, 12, .14), transparent 50%),
    var(--bg);
}

/* halo ambiental detrás de la tarjeta */
.admin-login-wrap::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, .22), transparent 65%);
  filter: blur(40px);
  z-index: 0;
  animation: loginGlow 9s ease-in-out infinite alternate;
}

@keyframes loginGlow {
  from { transform: translateY(-16px) scale(1); opacity: .8; }
  to   { transform: translateY(16px) scale(1.08); opacity: 1; }
}

.admin-login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px 32px;
  box-shadow:
    0 24px 60px -20px rgba(15, 23, 42, .35),
    0 8px 24px -12px rgba(249, 115, 22, .25);
  animation: loginCardIn .5s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-icon-wrap {
  width: 96px;
  height: auto;
  border-radius: var(--radius-lg);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  padding: 14px 16px;
  box-shadow: 0 10px 28px -8px rgba(249, 115, 22, 0.45);
}

.login-icon-wrap svg,
.login-icon-wrap .material-icons-outlined {
  width: 24px;
  height: 24px;
  font-size: 24px;
}

.login-title {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.4px;
  background: linear-gradient(135deg, #F97316, #EA580C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 26px;
}

/* ═══ OAuth buttons ═══ */
.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-sizing: border-box;
  margin-bottom: 12px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.oauth-btn:hover {
  transform: translateY(-2px);
}

.oauth-btn:active {
  transform: translateY(0);
}

.oauth-btn--google {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.oauth-btn--google:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 20px -8px rgba(15, 23, 42, .3);
}

.oauth-btn--apple {
  background: #000;
  color: #fff;
  border: 1px solid #000;
  margin-bottom: 0;
}

.oauth-btn--apple:hover {
  background: #1a1a1a;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .55);
}

/* ═══ Acceso usuario/contraseña (colapsable) ═══ */
.login-credentials-wrap {
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.login-collapse-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.login-collapse-toggle:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-hover);
}

.login-chevron {
  font-size: 20px;
  transition: transform var(--transition);
}

.login-credentials-wrap.open .login-chevron {
  transform: rotate(180deg);
}

.login-credentials {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .4s cubic-bezier(.16, 1, .3, 1), opacity .3s ease;
}

.login-credentials-wrap.open .login-credentials {
  max-height: 320px;
  opacity: 1;
  padding-top: 8px;
}

