/* =======================================
   auth.css — Login & Register styles (dark theme + cyan accent)
   ======================================= */

.auth-bg {
  position: fixed;
  inset: 0;
  background: #0d1117;
  background:
    radial-gradient(1200px 800px at 10% 10%, #673ab780 0%, transparent 60%),
    radial-gradient(1000px 700px at 90% 20%, #03a9f480 0%, transparent 65%),
    linear-gradient(120deg, #0d1117, #0d1117 60%, #0d1117);
  z-index: -2;
  overflow: hidden;
}

.auth-bg::before, .auth-bg::after {
  content: "";
  position: fixed;
  inset: -100px;
  pointer-events: none;
  background-repeat: repeat;
  z-index: -1;
  opacity: .35;
  animation: drift 60s linear infinite;
}

.auth-bg::before {
  background-image:
    radial-gradient(2px 2px at 20px 30px, #ffffffcc 50%, transparent 52%),
    radial-gradient(2px 2px at 200px 120px, #ffffffcc 50%, transparent 52%),
    radial-gradient(2px 2px at 340px 260px, #ffffffcc 50%, transparent 52%),
    radial-gradient(2px 2px at 520px 40px, #ffffffcc 50%, transparent 52%),
    radial-gradient(2px 2px at 760px 180px, #ffffffcc 50%, transparent 52%);
  background-size: 800px 400px;
  filter: blur(.2px);
  animation-duration: 90s;
}

.auth-bg::after {
  background-image:
    radial-gradient(1.5px 1.5px at 60px 80px, #ffffff99 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 260px 200px, #ffffff99 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 460px 140px, #ffffff99 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 700px 260px, #ffffff99 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 940px 60px, #ffffff99 50%, transparent 52%);
  background-size: 1000px 500px;
  animation-duration: 120s;
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-200px, -120px, 0); }
}

/* ===== Card ===== */
.auth-card {
  border-radius: 24px;
  background: rgba(13, 17, 23, 0.65);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: cardAppear 0.6s ease-out both;
}

@keyframes cardAppear {
  from { opacity: 0; transform: translateY(25px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Logo */
.auth-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* Tipografía */
.auth-card h1 { color: #e8eef5; font-weight: 700; }
.auth-card p {
  color: #e8eef5 !important;
  opacity: 0.9;
}


/* ===== Labels & inputs ===== */
.auth-card .form-label {
  color: #e8eef5;
  font-weight: 600;
  margin-bottom: .4rem;
}

.auth-card .form-control,
.auth-card .input-group-text {
  border-radius: 12px;
  background-color: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #f2f6fb;
}

.auth-card .form-control::placeholder {
  color: #c5d1de;
  opacity: 0.8;
}

.auth-card .form-control:focus {
  background-color: rgba(255,255,255,0.1);
  border-color: #00d8ff;
  box-shadow: 0 0 0 0.25rem rgba(0,216,255,0.15);
  color: #fff;
}

.auth-card .input-group-text {
  color: #a9b6c4;
  background-color: rgba(255,255,255,0.05);
}

/* ===== Botones ===== */
.auth-card .btn-primary {
  border-radius: 12px;
  background: #00d8ff;
  color: #001018;
  font-weight: 600;
  border: none;
  transition: all .2s ease;
  box-shadow: 0 0 20px rgba(0,216,255,0.25);
}
.auth-card .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(0,216,255,0.4);
}

.btn-outline-light {
  border: 1px solid rgba(255,255,255,0.25);
  color: #e8eef5;
  border-radius: 12px;
}
.btn-outline-light:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.1);
}

/* ===== Enlaces ===== */
.auth-card a {
  color: #a9c7ff;
  text-decoration: none;
}
.auth-card a:hover {
  text-decoration: underline;
}

/* ===== Alertas ===== */
.alert-danger {
  background: rgba(255, 65, 54, 0.15);
  border: 1px solid rgba(255, 65, 54, 0.25);
  color: #ff8888;
  border-radius: 12px;
}

/* ===== Textos pequeños y labels adicionales ===== */

/* "Remember me" */
.auth-card .form-check-label {
  color: #e8eef5;
  font-weight: 500;
}

/* "Don't have an account?" y similares */
.auth-card .small,
.auth-card small,
.auth-card .text-muted {
  color: #e8eef5 !important;
  opacity: 0.9;
}

/* Links dentro de esos textos */
.auth-card .small a,
.auth-card small a {
  color: #00d8ff;
  text-decoration: none;
  font-weight: 600;
}

.auth-card .small a:hover,
.auth-card small a:hover {
  text-decoration: underline;
}

