body {
  font-family: "Roboto", sans-serif;
  background-color: #f8fafb;
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
}

.bodye {
  background-image: url(../images/entrada.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  display: flex;
  align-items: center;
}

p {
  color: #b3b3b3;
  font-weight: 300;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: "Roboto", sans-serif;
}

a {
  color: #888;
  text-decoration: none;
  transition: .3s all ease;
}

a:hover {
  color: #000;
  text-decoration: none !important;
}

.content {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
}

.container {
  height: auto;
}

.logo {
  max-width: 120px;
  height: auto;
}

.form-block {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.text-center.mb-3 {
  margin-bottom: 1rem !important;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 25px 15px 15px 15px;
  border: 1px solid rgba(11, 60, 145, 0.1);
  transition: all 0.3s ease;
  min-height: 70px;
}

.form-group:last-of-type {
  margin-bottom: 1rem;
}

.form-group:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(11, 60, 145, 0.2);
}

.form-group.focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #0b3c91;
  box-shadow: 0 0 0 4px rgba(11, 60, 145, 0.1);
}

.form-group label {
  font-size: 13px;
  color: #666;
  position: absolute;
  top: 8px;
  left: 15px;
  transition: all 0.3s ease;
  padding: 0 5px;
  background: rgba(255, 255, 255, 0.95);
  z-index: 2;
  border-radius: 3px;
}

.form-group.field--not-empty label,
.form-group.focus label {
  top: 0;
  transform: translateY(-50%);
  font-size: 12px;
  color: #0b3c91;
  background: rgba(255, 255, 255, 0.95);
}

.form-control {
  padding: 10px 5px 12px 0;
  font-size: 15px;
  height: 9px;
  background: transparent;
  transition: all 0.3s ease;
  width: 100%;
  color: #333;
  font-weight: 500;
  border: none;
  margin-top: 5px;
}

.form-control:focus {
  outline: none;
  box-shadow: none;
}

.password-container {
  position: relative;
  margin-top: 5px;
}

.toggle-password {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 50%;
  background: transparent;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.toggle-password i {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
}

.toggle-password:hover {
  color: #0b3c91;
  background: rgba(11, 60, 145, 0.1);
}

.toggle-password:active {
  transform: translateY(-50%) scale(0.95);
  background: rgba(11, 60, 145, 0.2);
}

/* Asegurar que el input password tenga suficiente padding a la derecha */
.password-container .form-control {
  padding-right: 45px;
}

/* Estilo para el autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #333;
  -webkit-box-shadow: 0 0 0px 1000px transparent inset;
  transition: background-color 5000s ease-in-out 0s;
}

.btn {
  padding: 14px 30px;
  margin: 1rem 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #0b3c91 0%, #1a56b3 100%);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: all 0.5s ease;
}

.btn:hover:before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(11, 60, 145, 0.3);
  background: linear-gradient(135deg, #0b3c91 0%, #2665cc 100%);
}

.social-section {
  margin-top: auto;
  padding-top: 1rem;
}

.social-login {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-login a {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.social-login a span {
  font-size: 20px;
  z-index: 1;
  transition: all 0.3s ease;
}

.social-login a:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
  opacity: 0;
  transition: all 0.3s ease;
}

.social-login a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-login a:hover:before {
  opacity: 1;
}

.social-login a:active {
  transform: translateY(-1px);
}

.social-login a.facebook {
  background: linear-gradient(45deg, #3b5998, #4c70ba);
}

.social-login a.facebook span {
  color: #fff;
}

.social-login a.google {
  background: #fff;
  border: 1px solid #ea4335;
}

.social-login a.google span {
  color: #ea4335;
  background: linear-gradient(45deg, #ea4335, #fbbc05, #34a853, #4285f4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.social-login a.google:hover {
  background: #ea4335;
}

.social-login a.google:hover span {
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}

.alert {
  border-radius: 8px;
  margin-bottom: 1.5rem;
  transition: opacity 0.3s ease;
}

.register-link {
  color: #0b3c91;
  font-weight: 500;
  margin-left: 5px;
}

.register-link:hover {
  text-decoration: underline !important;
}

.control {
  display: block;
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  cursor: pointer;
  font-size: 14px;
}

.control input {
  position: absolute;
  z-index: -1;
  opacity: 0;
}

.control__indicator {
  position: absolute;
  top: 2px;
  left: 0;
  height: 20px;
  width: 20px;
  background: #e6e6e6;
  border-radius: 4px;
}

.control input:checked ~ .control__indicator {
  background: #0b3c91;
}

.control__indicator:after {
  content: '';
  position: absolute;
  display: none;
  left: 8px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}


.control input:checked ~ .control__indicator:after {
  display: block;
}

.text-center.my-3 {
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

.text-muted.mb-3 {
  margin-bottom: 0.5rem !important;
}

.mt-3 {
  margin-top: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 0.5rem !important;
}

@media (max-width: 991.98px) {
  .form-block {
    padding: 25px;
  }
}

@media (min-height: 600px) and (max-height: 800px) {
  .form-block {
    padding: 5px;
    gap: 5px;
  }
  
  .logo {
    max-width: 100px;
  }
}

@media (max-height: 599px) {
  .form-block {
    padding: 20px;
    gap: 10px;
  }

  .logo {
    max-width: 90px;
  }

  .form-group {
    margin-bottom: 1rem;
  }
}
