/* Global styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
}

body {
  margin: 0;
  padding: 24px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  background: url(../images/bg.jpg) no-repeat center center fixed;
  background-size: cover;
  overflow-x: hidden;
}

/* Container styles */
.login-container {
  width: 100%;
  max-width: 440px;
  background: rgba(38, 8, 165, 0.58);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  border-radius: 20px;
  padding: 36px 34px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.38), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: padding 0.25s ease, max-width 0.25s ease;
}

.auth-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: fadeInSection 0.3s ease-out;
}

@keyframes fadeInSection {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Heading styles */
.login-container h1 {
  font-size: clamp(1.65rem, 4.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
  margin: 0 0 16px 0;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Logo & Social icons styles */
.social-icons {
  text-align: center;
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-icons img,
.login-logo {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.social-icons .icon {
  display: inline-block;
  font-size: 20px;
  color: white;
  margin: 0 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 7px 10px;
  transition: color 0.3s ease;
}

.social-icons .icon:hover {
  color: #c2c2c2;
}

form,
.select-buttons-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;
}

/* Form container styles */
.form-container {
  padding: 40px;
  transition: all 0.3s ease;
}

/* Form message container styles */
.form-message-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 14px;
  font-size: clamp(0.92rem, 2.5vw, 1.05rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  line-height: 1.4;
}

/* Form input and button styles */
input,
.botones {
  width: 100%;
  height: 50px;
  margin: 4px 0;
  border-radius: 50px;
  font-size: clamp(0.95rem, 2.5vw, 1.12rem);
  color: #ffffff;
  outline: none;
  transition: all 0.25s ease-in-out;
}

input {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  padding: 0 20px;
  text-indent: 0;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.78);
  text-indent: 0;
}

input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: #62c3bc;
  box-shadow: 0 0 0 3px rgba(98, 195, 188, 0.28);
}

.botones {
  background: linear-gradient(135deg, #62c3bc 0%, #48a9a2 100%);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.4px;
  border: none;
  cursor: pointer;
  padding: 0 20px;
  text-indent: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.botones:hover {
  background: linear-gradient(135deg, #45a049 0%, #388e3c 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.botones:active {
  transform: translateY(1px);
}

/* Anchor tag & helper text styles */
a,
.auth-link {
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.96rem;
  margin-top: 6px;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover,
.auth-link:hover {
  color: #62c3bc;
  text-decoration: none;
}

.info-text {
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 14px 0 8px 0;
}

.back-text {
  text-align: center;
  font-size: 0.96rem;
  margin: 6px 0 0 0;
}

/* Hidden class */
.hidden {
  display: none !important;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (PC, TABLET, PHONE)
   ========================================================= */

/* Large Desktop screens */
@media (min-width: 1024px) {
  .login-container {
    max-width: 450px;
    padding: 40px 38px;
  }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
  body {
    padding: 20px 16px;
  }

  .login-container {
    max-width: 420px;
    padding: 30px 28px;
    border-radius: 18px;
  }

  .social-icons img,
  .login-logo {
    max-width: 260px;
  }

  input,
  .botones {
    height: 48px;
  }
}

/* Phones (480px and below) */
@media (max-width: 480px) {
  body {
    padding: 16px 12px;
  }

  .login-container {
    max-width: 100%;
    padding: 24px 20px;
    border-radius: 16px;
  }

  .login-container h1 {
    font-size: 1.55rem;
    margin-bottom: 12px;
  }

  .social-icons {
    margin-bottom: 14px;
  }

  .social-icons img,
  .login-logo {
    max-width: 215px;
  }

  .form-message-container {
    margin-bottom: 10px;
    font-size: 0.92rem;
  }

  form,
  .select-buttons-group {
    gap: 8px;
  }

  input,
  .botones {
    height: 46px;
    font-size: 0.98rem;
    margin: 2px 0;
  }

  .info-text {
    font-size: 0.84rem;
    padding: 9px 12px;
  }
}

/* Extra small phones (360px and below) */
@media (max-width: 360px) {
  .login-container {
    padding: 20px 16px;
  }

  .login-container h1 {
    font-size: 1.38rem;
  }

  .social-icons img,
  .login-logo {
    max-width: 180px;
  }

  input,
  .botones {
    height: 44px;
    font-size: 0.92rem;
    padding: 0 16px;
  }
}

/* Mobile landscape orientation */
@media (max-height: 550px) and (orientation: landscape) {
  body {
    align-items: flex-start;
    padding: 16px;
  }

  .login-container {
    max-width: 480px;
    padding: 20px 24px;
  }

  .social-icons img,
  .login-logo {
    max-width: 170px;
  }
}
