/*
          █████               ████                  
         ░░███               ░░███                  
  █████  ███████   █████ ████ ░███   ██████   █████ 
 ███░░  ░░░███░   ░░███ ░███  ░███  ███░░███ ███░░  
░░█████   ░███     ░███ ░███  ░███ ░███████ ░░█████ 
 ░░░░███  ░███ ███ ░███ ░███  ░███ ░███░░░   ░░░░███
 ██████   ░░█████  ░░███████  █████░░██████  ██████ 
░░░░░░     ░░░░░    ░░░░░███ ░░░░░  ░░░░░░  ░░░░░░  
                    ███ ░███                        
                   ░░██████                         
                    ░░░░░░                          
*/

/* ===============================
   Fondo animado (todas las páginas)
================================== */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(-45deg, #6a11cb, #2575fc, #00c6ff, #0072ff);
  background-size: 400% 400%;
  animation: gradientBG 12s ease infinite;
}

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

/* ===============================
   Caja central (login / error / fechas)
================================== */
.login-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.login-container {
  background: #fff;
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 350px;
  text-align: center;
  overflow: hidden;
}

.login-container h1 {
  margin-bottom: 1.3rem;
  font-size: 2.5rem;
  color: #F00;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.login-container h2 {
  margin-bottom: 1.3rem;
  font-size: 1.3rem;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.login-container h3 {
  margin-bottom: 1.3rem;
  font-size: 1.8rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 12px;
  background: linear-gradient(45deg, #6a11cb, #2575fc);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  padding: 10px;
}

/* ===============================
   Inputs y check groups
================================== */
.input-group {
  width: 100%;
  margin-bottom: 1.2rem;
  text-align: left;
}

.input-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #444;
  text-align: left;
}

.input-group.formatoCorto {
        
}

.input-group input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-sizing: border-box;
  background: #fff;
  transition: border 0.2s, box-shadow 0.2s;
}

.input-group input[type="date"] {
  font-size: 1.05rem;
  padding: 1rem;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.3;
}

.input-group input:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.input-group input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  margin-right: 5px;
}

.check-group {
  width: 100%;
  margin-bottom: 1.2rem;
  text-align: right;
}

.check-label {  
  float: left;
}

input.apple-switch {
    position: relative;
    appearance: none; outline: none;
    width: 50px; height: 30px;
    background-color: #ffffff; border: 1px solid #D9DADC;
    border-radius: 50px; box-shadow: inset -20px 0 0 0 #ffffff;
    transition-duration: 200ms;
}

input.apple-switch:after {
    content: "";
    position: absolute;
    top: 1px; left: 1px;
    width: 26px; height: 26px;
    background-color: transparent;
    border-radius: 50%; box-shadow: 2px 4px 6px rgba(0,0,0,0.2);
}

input.apple-switch:checked {
    border-color: #4ED164;
    box-shadow: inset 20px 0 0 0 #4ED164;
}

input.apple-switch:checked:after {
    left: 20px;
    box-shadow: -2px 4px 3px rgba(0,0,0,0.05);
}

/* ===============================
   Botón principal
================================== */
.login-btn {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem;
  background: linear-gradient(45deg, #6a11cb, #2575fc);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.login-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ===============================
   Caja de error
================================== */
.error-box {
  background: #ffe5e5;
  color: #b20000;
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  border: 1px solid #ffb3b3;
  text-align: left;
}


/* ===============================
   Extra Links
=================================  */

.extra-links {
    text-decoration: none;
    margin-top: 2.0rem;
}



/* ===============================
   Responsivo
================================== */
@media (max-width: 480px) {
  .login-container {
    padding: 1.5rem;
  }

  .login-container h2 {
    font-size: 1.4rem;
  }

  .login-btn {
    font-size: 0.95rem;
    padding: 0.9rem;
  }
}

/* ===============================
  Spinner
================================== */
.spin-div {   
    width: 100%;
    place-items: center;
}

.spin-loader {
  margin: 0 auto;
  border: 16px solid #f3f3f3; /* Light grey */
  border-top: 16px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
