/* ================================================================
   login_simple.css — HMGroup
   Card blanca centrada, fondo dark, igual a AC TechPro
================================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  background: #0d1b2e;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Grid fondo ── */
.auth-bg-grid {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

/* ── Página ── */
.auth-page {
  position: relative; z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  width: 100%;
}

/* ── Card blanca ── */
.auth-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 36px 28px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  animation: fadeIn .3s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Logo ── */
.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.auth-logo-icon {
  width: 56px; height: 56px;
  background: #0d1b2e;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 10px;
}

.auth-logo-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0d1b2e;
  letter-spacing: .3px;
}

.auth-logo-sub {
  font-size: .6rem;
  color: #94a3b8;
  letter-spacing: 2px;
  margin-top: 2px;
}

/* ── Título ── */
.auth-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  text-align: center; /* ← agregar */
}

.auth-sub {
  font-size: .72rem;
  color: #94a3b8;
  margin-bottom: 22px;
  text-align: center; /* ← agregar */
}

/* ── Form group ── */
.form-group { margin-bottom: 14px; }

.form-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.form-label span { color: #ef4444; }

/* ── Input wrap ── */
.input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}

.input-wrap:focus-within {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14,165,233,.1);
}

.input-icon {
  font-size: 15px;
  color: #94a3b8;
  margin-right: 8px;
  flex-shrink: 0;
}

.form-control {
  flex: 1;
  border: none;
  background: transparent;
  color: #0f172a;
  font-family: 'Poppins', sans-serif;
  font-size: .82rem;
  padding: 11px 0;
  outline: none;
}

.form-control::placeholder { color: #cbd5e1; }

.toggle-pass {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 0;
  display: flex;
  align-items: center;
  transition: color .18s;
}

.toggle-pass:hover { color: #0ea5e9; }

/* ── Botón ── */
.btn-primary {
  width: 100%;
  padding: 12px;
  background: #0ea5e9;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s, box-shadow .2s;
  margin-top: 6px;
}

.btn-primary:hover {
  background: #0284c7;
  box-shadow: 0 4px 16px rgba(14,165,233,.3);
}

.btn-primary:disabled {
  opacity: .65;
  cursor: not-allowed;
}

/* ── Footer ── */
.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: .62rem;
  color: #94a3b8;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .auth-card { padding: 32px 24px 24px; border-radius: 16px; }
}