/* ============================================
   AUTH.CSS - Estilos para Registro y Acceso
   Colores principales: #EAF7FB, #BFEAF2, #63C9D6
   ============================================ */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(145deg, #EAF7FB 0%, #BFEAF2 100%);
  min-height: 100vh;
  min-height: 100dvh;
}

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */
.auth-container {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ============================================
   LADO VISUAL (IZQUIERDO)
   ============================================ */
.auth-visual {
  flex: 1;
  background: linear-gradient(145deg, #1a4a4f 0%, #0e2e32 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px;
  color: white;
  overflow: hidden;
}

.auth-visual::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 201, 214, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 40px;
  transition: all 0.3s;
  z-index: 2;
}

.back-home:hover {
  color: #63C9D6;
  transform: translateX(-4px);
}

.visual-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.visual-content img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 32px;
  border: 3px solid rgba(99, 201, 214, 0.5);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.3);
}

.visual-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.visual-content h2 span {
  color: #63C9D6;
  background: linear-gradient(135deg, #63C9D6, #3a9eab);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.visual-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 280px;
  line-height: 1.5;
}

/* ============================================
   LADO DEL FORMULARIO (DERECHO)
   ============================================ */
.auth-form-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.auth-form-box {
  max-width: 480px;
  width: 100%;
  background: white;
  border-radius: 32px;
  padding: 40px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a4a4f;
  margin-bottom: 8px;
}

.auth-header p {
  color: #5a8a8f;
  font-size: 14px;
}

.auth-header strong {
  color: #63C9D6;
}

/* ============================================
   FORMULARIO
   ============================================ */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #1a4a4f;
}

.form-group input {
  padding: 14px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  font-size: 15px;
  transition: all 0.3s;
  background: #f8fafc;
}

.form-group input:focus {
  outline: none;
  border-color: #63C9D6;
  background: white;
  box-shadow: 0 0 0 3px rgba(99, 201, 214, 0.2);
}

.form-group input::placeholder {
  color: #a0aec0;
}

/* Checkbox y opciones */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
}

.form-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5a8a8f;
}

.form-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #63C9D6;
}

.form-options a {
  color: #63C9D6;
  text-decoration: none;
}

.form-options a:hover {
  text-decoration: underline;
}

/* Botón principal */
.btn-auth {
  background: linear-gradient(135deg, #63C9D6, #3a9eab);
  border: none;
  color: white;
  font-weight: 700;
  font-size: 16px;
  padding: 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
  width: 100%;
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 201, 214, 0.4);
}

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

/* Footer del formulario */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  font-size: 14px;
  color: #5a8a8f;
}

.auth-footer a {
  color: #63C9D6;
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  .auth-container {
    flex-direction: column;
  }

  .auth-visual {
    padding: 32px;
    min-height: 320px;
  }

  .visual-content {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    text-align: left;
  }

  .visual-content img {
    width: 80px;
    height: 80px;
    margin-bottom: 0;
  }

  .visual-content h2 {
    font-size: 24px;
  }

  .visual-content p {
    width: 100%;
    max-width: 100%;
  }

  .back-home {
    margin-bottom: 20px;
  }

  .auth-form-wrapper {
    padding: 32px 20px;
  }

  .auth-form-box {
    padding: 32px 24px;
  }
}

@media (max-width: 640px) {
  .form-row {
    flex-direction: column;
    gap: 20px;
  }

  .auth-header h1 {
    font-size: 24px;
  }

  .auth-form-box {
    padding: 24px 20px;
  }

  .visual-content {
    justify-content: center;
    text-align: center;
  }

  .visual-content img {
    width: 70px;
    height: 70px;
  }

  .visual-content h2 {
    font-size: 20px;
  }

  .visual-content p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .auth-visual {
    padding: 24px 20px;
  }

  .auth-form-wrapper {
    padding: 24px 16px;
  }

  .auth-form-box {
    padding: 20px 16px;
    border-radius: 24px;
  }

  .btn-auth {
    padding: 14px;
  }
}
