* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-x: hidden;
  position: relative;
  background: #81d4fa;
  font-family: Arial, Helvetica, sans-serif;
}

.alert {
	padding: 14px 20px;
	border-radius: var(--radius-sm);
	margin-top: 10px;
	margin-bottom: 10px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 10px;
	animation: slideIn 0.3s ease;
}
@keyframes slideIn {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: translateY(0); }
}
.alert-success {
	background: #d4edda;
	color: #155724;
	border-left: 4px solid var(--success);
}
.alert-error {
	background: #fce4e4;
	color: #721c24;
	border-left: 4px solid var(--danger);
}

.file-icon {
	font-size: 1.8rem;
	text-align: center;
}

/* =====================================================
   FONDO DECORATIVO
   ===================================================== */
.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;

  /* Cielo con degradado animado */
  background: linear-gradient(
    -45deg,
    #e1f5fe,
    #b3e5fc,
    #81d4fa,
    #4fc3f7,
    #b3e5fc
  );
  background-size: 400% 400%;
  animation: skyShift 18s ease infinite;
}

@keyframes skyShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- SOL con resplandor ---------- */
.sun {
  position: absolute;
  top: 8%;
  right: 12%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #fffde7 30%, #fff9c4 60%, transparent 72%);
  box-shadow:
    0 0 60px 20px rgba(255, 253, 231, 0.6),
    0 0 120px 60px rgba(255, 249, 196, 0.35);
  animation: sunPulse 6s ease-in-out infinite;
}

@keyframes sunPulse {
  0%, 100% { transform: scale(1);   opacity: 0.9; }
  50%      { transform: scale(1.1); opacity: 1;   }
}

/* ---------- NUBES ---------- */
.cloud {
  position: absolute;
  background: #ffffff;
  border-radius: 100px;
  opacity: 0.85;
  filter: blur(0.4px);
  box-shadow: 0 8px 20px rgba(2, 119, 189, 0.08);
}

/* Cuerpo base + bultos con pseudo-elementos */
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
}

.cloud::before {
  width: 60%;
  height: 160%;
  top: -70%;
  left: 15%;
}

.cloud::after {
  width: 45%;
  height: 130%;
  top: -50%;
  right: 15%;
}

.cloud-1 {
  width: 140px;
  height: 45px;
  top: 15%;
  left: -180px;
  animation: floatCloud 32s linear infinite;
}

.cloud-2 {
  width: 100px;
  height: 35px;
  top: 30%;
  left: -140px;
  animation: floatCloud 45s linear infinite;
  animation-delay: -10s;
  opacity: 0.65;
}

.cloud-3 {
  width: 180px;
  height: 55px;
  top: 55%;
  left: -220px;
  animation: floatCloud 55s linear infinite;
  animation-delay: -25s;
  opacity: 0.55;
}

.cloud-4 {
  width: 120px;
  height: 40px;
  top: 8%;
  left: -160px;
  animation: floatCloud 38s linear infinite;
  animation-delay: -18s;
  opacity: 0.7;
}

@keyframes floatCloud {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 300px)); }
}

/* ---------- BLOBS DIFUSOS ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  mix-blend-mode: screen;
}

.blob-1 {
  width: 420px;
  height: 420px;
  background: #4fc3f7;
  top: -100px;
  left: -100px;
  animation: blobMove1 22s ease-in-out infinite;
}

.blob-2 {
  width: 380px;
  height: 380px;
  background: #b3e5fc;
  bottom: -120px;
  right: -100px;
  animation: blobMove2 26s ease-in-out infinite;
}

.blob-3 {
  width: 320px;
  height: 320px;
  background: #81d4fa;
  top: 40%;
  left: 60%;
  animation: blobMove3 30s ease-in-out infinite;
}

@keyframes blobMove1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(80px, 60px) scale(1.15); }
}
@keyframes blobMove2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-100px, -50px) scale(1.2); }
}
@keyframes blobMove3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-60px, 80px) scale(0.9); }
}

/* ---------- PARTÍCULAS BRILLANTES ---------- */
.particles span {
  position: absolute;
  display: block;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  animation: twinkle 4s ease-in-out infinite;
}

/* Distribución + retardos aleatorios */
.particles span:nth-child(1)  { top: 10%; left: 15%; animation-delay: 0s;   }
.particles span:nth-child(2)  { top: 22%; left: 78%; animation-delay: 0.4s; }
.particles span:nth-child(3)  { top: 38%; left: 30%; animation-delay: 0.8s; }
.particles span:nth-child(4)  { top: 60%; left: 88%; animation-delay: 1.2s; }
.particles span:nth-child(5)  { top: 75%; left: 12%; animation-delay: 1.6s; }
.particles span:nth-child(6)  { top: 50%; left: 55%; animation-delay: 2s;   }
.particles span:nth-child(7)  { top: 15%; left: 45%; animation-delay: 2.4s; }
.particles span:nth-child(8)  { top: 82%; left: 68%; animation-delay: 2.8s; }
.particles span:nth-child(9)  { top: 68%; left: 40%; animation-delay: 3.2s; }
.particles span:nth-child(10) { top: 28%; left: 8%;  animation-delay: 3.6s; }
.particles span:nth-child(11) { top: 45%; left: 92%; animation-delay: 0.6s; }
.particles span:nth-child(12) { top: 88%; left: 22%; animation-delay: 1.4s; }
.particles span:nth-child(13) { top: 5%;  left: 62%; animation-delay: 2.2s; }
.particles span:nth-child(14) { top: 72%; left: 78%; animation-delay: 3.0s; }
.particles span:nth-child(15) { top: 35%; left: 48%; animation-delay: 3.8s; }

.particles span:nth-child(odd)  { width: 4px; height: 4px; }
.particles span:nth-child(3n)   { width: 8px; height: 8px; }

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.6); }
  50%      { opacity: 1;   transform: scale(1.3); }
}

/* ---------- ONDAS INFERIORES ---------- */
.waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 220px;
  line-height: 0;
}

.waves svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.waves svg:nth-child(1) {
  animation: waveMove 12s ease-in-out infinite alternate;
}
.waves svg:nth-child(2) {
  animation: waveMove 9s ease-in-out infinite alternate-reverse;
}

@keyframes waveMove {
  from { transform: translateX(-25px); }
  to   { transform: translateX(25px);  }
}

/* =====================================================
   TARJETA DE LOGIN
   ===================================================== */
.login-container {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.login-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 25px 40px 5px 40px;
  box-shadow:
    0 20px 50px rgba(2, 119, 189, 0.5),
    0 8px 20px rgba(2, 119, 189, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  text-align: center;
  animation: fadeIn 0.8s ease-out;
  margin-bottom: 50px;
}

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

/* Ícono */
.login-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4fc3f7, #0288d1);
  border-radius: 50%;
  color: white;
  box-shadow: 0 8px 20px rgba(2, 136, 209, 0.35);
}

.login-icon svg { width: 34px; height: 34px; }

/* Títulos */
.login-title {
  font-size: 26px;
  color: #01579b;
  margin-bottom: 8px;
  font-weight: 700;
}

.login-subtitle {
  font-size: 18px;
  color: #0288d1;
  margin-bottom: 30px;
  font-weight: 500;
}

/* Formulario */
.login-form { text-align: left; }

.input-group { margin-bottom: 20px; }

.input-group label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #0277bd;
  margin-bottom: 3px;
}

.input-group input {
  width: 100%;
  padding: 10px 10px;
  border: 2px solid #b3e5fc;
  border-radius: 12px;
  font-size: 24px;
  color: #01579b;
  background: #f5fcff;
  transition: all 0.3s ease;
  text-align: center;
  outline: none;
}

.input-group select {
  width: 100%;
  padding: 10px 10px;
  border: 2px solid #b3e5fc;
  border-radius: 12px;
  font-size: 18px;
  color: #01579b;
  background: #f5fcff;
  transition: all 0.3s ease;
  outline: none;
}

.input-group input::placeholder { color: #81d4fa; }

.input-group input:focus {
  border-color: #29b6f6;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(41, 182, 246, 0.15);
}

/* Opciones */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 13px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0277bd;
  cursor: pointer;
  user-select: none;
}

.remember input {
  accent-color: #29b6f6;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.forgot {
  color: #0288d1;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.forgot:hover { color: #01579b; text-decoration: underline; }

/* Botón */
.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #29b6f6, #0288d1);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(2, 136, 209, 0.3);
  margin-bottom: 10px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(2, 136, 209, 0.45);
  background: linear-gradient(135deg, #03a9f4, #0277bd);
}

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

/* Registro */
.register-text {
  margin-top: 28px;
  font-size: 13px;
  color: #0288d1;
}

.register-text a {
  color: #0277bd;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.register-text a:hover { color: #01579b; text-decoration: underline; }

/* Responsive */
@media (max-width: 480px) {
  .login-card { padding: 30px 20px 5px 20px; margin-bottom: 50px;}
  .login-title { font-size: 22px; }
  .form-options {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .sun { width: 100px; height: 100px; }
  .waves { height: 150px; }
}