* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 0;
}

.auth-wrapper {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
}

.form-section {
  width: 30%;
  min-width: 300px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-section img {
  max-width: 100%;
  height: auto;
  margin-bottom: 30px;
}

.form-icon-group {
  position: relative;
}

.form-icon-group i {
  position: absolute;
  top: 50%;
  left: 10px;
  color: #002D5B;
}

.form-icon-group input {
  padding-left: 25px;
}

.btn-primary {
  background-color: #002D5B !important;
}

.btn-primary:hover {
  background-color: #003366 !important;
}

.btn-primary:active {
  background-color: #003366 !important;
}

.btn-main {
  background-color: #002D5B;
  color: #fff;
  border: none;
}

.btn-main:hover {
  background-color: #003366;
}

.btn-main:active {
  background-color: #001F3D;
}


.text-primary {
  color: #002D5B !important;
}

.text-primary:hover {
  color: #003366 !important;
}

.image-section {
  width: 70%;
  position: relative;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
}

.image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.image-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(0%, -50%);
  color: #fff;
  text-align: center;
  z-index: 2;
  padding: 2rem 4rem;
}

.overlay-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9) !important;
}

.overlay-text p {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9) !important;
}

.logo-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.logo-img {
  width: 300px;
  height: auto;
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0;
  font-weight: 400;
}

.custom-control-label {
  padding-top: 2px;
}

.custom-switch .custom-control-label::before {
  background-color: #dee2e6;
  border: none;
  height: 1.25rem;
  width: 2rem;
  border-radius: 1rem;
}

.custom-control-input:checked~.custom-control-label::before {
  background-color: #002D5B !important;
  border-color: #002D5B !important;
}

.custom-switch .custom-control-label::after {
  top: calc(0.25rem + 2px);
  left: calc(-2.25rem + 2px);
  width: calc(1.25rem - 4px);
  height: calc(1.25rem - 4px);
}

.is-invalid {
  border-color: #dc3545 !important;
}

.invalid-feedback {
  font-size: 0.8rem;
}


.form-section a,
.form-section a.font-weight-bold {
  color: #002D5B;
  text-decoration: none;
}

.form-section a:hover {
  color: #003366 !important;
  text-decoration: underline;
}

.form-section a:active {
  color: #001F3D;
}

.social-links {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 48px;
  margin: 0;
  transition: width 0.2s ease;
}

.social-links:hover,
.social-links:focus-within {
  width: 272px;
}

.form-section .social-mascota {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
  margin: 0;
  padding: 2px;
  border: 1px solid #e3e7eb;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 7px 16px rgba(33, 43, 54, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social-links:hover .social-mascota {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 9px 20px rgba(0, 45, 91, 0.28);
}

.form-section .social-link {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #e3e7eb;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 7px 16px rgba(33, 43, 54, 0.12);
  font-size: 1.35rem;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-10px) scale(0.85);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
}

.social-links:hover .social-link,
.social-links:focus-within .social-link {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.form-section .social-link:hover,
.form-section .social-link:focus-visible {
  color: #ffffff !important;
  text-decoration: none;
  background-color: #002D5B;
  border-color: #002D5B;
  box-shadow: 0 9px 20px rgba(0, 45, 91, 0.28);
  transform: translateY(-3px);
  outline: none;
}

.social-web {
  color: #52606d !important;
}

.social-instagram {
  color: #e1306c !important;
}

.social-facebook {
  color: #1877f2 !important;
}

.social-youtube {
  color: #ff0000 !important;
}



@media (max-width: 767px) {
  .auth-wrapper {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../../img/auth.jpg');
    background-size: cover;
    background-position: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .form-section {
    width: 90% !important;
    height: 95% !important;
    max-width: 400px;
    background: #ffffff;
    padding: 30px;
    border-radius: 0.375rem; 
    height: auto;
    min-width: unset;
  }

  .image-section {
    display: none; 
  }

  .logo-img {
    width: 200px; 
  }

  .overlay-text {
    display: none !important;
  }
  .d-flex.justify-content-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .social-links {
    gap: 9px;
    left: 12px;
    bottom: 12px;
    width: 44px;
  }

  .social-links:hover,
  .social-links:focus-within {
    width: 240px;
  }

  .form-section .social-link {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1.2rem;
  }

  .form-section .social-mascota {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
}


@media (min-width: 768px) and (max-width: 991px) {
  .auth-wrapper {
    flex-direction: row;
  }

  .form-section {
    width: 45%;
  }

  .image-section {
    width: 55%;
  }
}

@media (min-width: 992px) {
  .auth-wrapper {
    flex-direction: row;
  }

  .form-section {
    width: 30%;
  }

  .image-section {
    width: 70%;
  }
}
