* {
      box-sizing: border-box;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    body {
      margin: 0;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background: radial-gradient(circle at center, #ffffff 0%, #f0f2f5 100%);
    }

    @keyframes fadeInSlide {
      from {
        opacity: 0;
        transform: translateY(15px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .login-container {
      background: #ffffff;
      padding: 40px;
      border-radius: 20px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
      width: 100%;
      max-width: 360px;
      text-align: center;
      animation: fadeInSlide 0.4s ease-out forwards;
    }

    .brand-logo-text {
      font-size: 28px;
      font-weight: 800;
      color: #da291c;
      margin-bottom: 5px;
      letter-spacing: -0.5px;
    }

    .subtitle {
      font-size: 12px;
      color: #999;
      margin-bottom: 25px;
      font-weight: 500;
    }

    .input-group {
      position: relative;
      margin-bottom: 12px;
    }

    .input-icon-left {
      position: absolute;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      color: #b0b0b0;
      font-size: 18px;
      pointer-events: none;
    }

    .input-icon-right {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: #b0b0b0;
      font-size: 18px;
      cursor: pointer;
      background: none;
      border: none;
      padding: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      outline: none;
    }

    .input-icon-right:hover {
      color: #777;
    }

    .uclaro-input {
      width: 100%;
      padding: 14px 20px 14px 45px;
      border-radius: 50px;
      border: 1px solid #eee;
      background: #fff;
      font-size: 16px;
      color: #333;
      transition: all 0.2s;
      -webkit-appearance: none;
      appearance: none;
    }

    .uclaro-input::placeholder {
      color: #bbb;
    }

    .uclaro-input:focus {
      outline: none;
      border-color: #da291c;
      box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.1);
    }

    .uclaro-input.has-right-icon {
      padding-right: 45px;
    }

    input[type="password"]::-ms-reveal,
    input[type="password"]::-ms-clear {
      display: none;
    }

    .btn-login {
      width: 100%;
      min-height: 42px;
      padding: 0 18px;
      border-radius: 50px;
      border: none;
      background: #da291c;
      color: #fff;
      font-weight: 700;
      font-size: 13px;
      line-height: 1;
      letter-spacing: 0.4px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin-top: 12px;
      transition: background 0.2s, box-shadow 0.2s;
      box-shadow: 0 4px 15px rgba(218, 41, 28, 0.25);
    }

    .btn-login:hover {
      background: #c32418;
      box-shadow: 0 6px 20px rgba(218, 41, 28, 0.35);
    }

    .btn-login:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    .register-link {
      display: inline-block;
      margin-top: 25px;
      color: #da291c;
      font-size: 13px;
      font-weight: 700;
      text-decoration: none;
      transition: color 0.2s;
      padding: 10px;
    }

    .register-link:hover {
      color: #a81c12;
      text-decoration: underline;
    }

    .footer-text {
      margin-top: 30px;
      font-size: 11px;
      color: #bbb;
    }

    .alert-error {
      background: #ffebee;
      color: #c62828;
      padding: 10px;
      border-radius: 8px;
      font-size: 12px;
      margin-bottom: 20px;
      display: none;
      border: 1px solid #ffcdd2;
    }


    .auth-title {
      margin: 0 0 20px;
      color: #333;
      font-size: 16px;
      font-weight: 600;
      line-height: 1.25;
    }

    .send-mail-box {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      min-height: 22px;
      margin: 0 0 10px;
    }

    .btn-send-mail {
      background: none;
      border: none;
      color: #da291c;
      font-size: 12px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      text-decoration: none;
      padding: 0;
    }

    .btn-send-mail:hover {
      color: #a81c12;
      text-decoration: underline;
    }

    .d-none {
      display: none !important;
    }

    .spinner-border {
      display: inline-block;
      width: 1rem;
      height: 1rem;
      border: 0.15em solid currentColor;
      border-right-color: transparent;
      border-radius: 50%;
      animation: spinner-border .75s linear infinite;
    }

    @keyframes spinner-border {
      to {
        transform: rotate(360deg);
      }
    }

    @media (max-width: 480px) {
      .login-container {
        padding: 40px 24px;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        width: 100%;
        max-width: 100%;
      }

      body {
        background: #ffffff;
        align-items: flex-start;
        padding-top: 8vh;
      }

      .brand-logo-text {
        font-size: 36px;
      }
    }
  
    .recovery-help {
      margin: 0 0 12px;
      font-size: 11px;
      line-height: 1.45;
      color: #5f6368;
      text-align: left;
    }

/* Flujo dinámico de recuperación, sin alterar el diseño base */
.recovery-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 12px;
}

.recovery-link-button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

#caseBox {
  margin-bottom: 14px;
}

#caseBox textarea {
  min-height: 82px;
  resize: vertical;
  padding-top: 12px;
}

#adminCodeRecoveryBlock,
#studentRecoveryBlock,
#securityRecoveryBlock {
  width: 100%;
}

select.uclaro-input {
  appearance: none;
  cursor: pointer;
}

/* Ajustes de seguridad y legibilidad recuperación */
.material-symbols-outlined,
.input-icon-left,
.password-toggle {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'liga';
}

.uclaro-input::placeholder {
  font-size: 14px;
  opacity: .72;
  text-overflow: ellipsis;
}

select.uclaro-input {
  padding-right: 36px;
  text-overflow: ellipsis;
}

.recovery-actions {
  margin-top: 2px;
  margin-bottom: 12px;
}

.recovery-actions .recovery-link-button {
  color: #da291c;
  font-weight: 600;
}

/* Recuperación segura: iconos independientes de fuentes externas */
.siuc-input-symbol {
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  color: #9ca3af;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.uclaro-input::placeholder {
  font-size: 14px;
  opacity: .72;
  text-overflow: ellipsis;
}

select.uclaro-input {
  padding-right: 38px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
