/* Rael-Letson Colors and Base Styles */
:root {
	--white:#ffffff;
	--light-grey:#cbd4da;
	--dark-grey: #464747;
	--blue-grey:#5e7387;
	--grey:#84848c;
	--sky-blue:#679dc4;
	--light-blue:#75c8ea;
	--blue:#56addd;
	--rl-blue:#006FE8;
  --hover-blue: #0077f6;
	--dark-blue:#002B6E;
	--font-family: "IBM Plex Sans";
  --font-size: 16px;
  --border-radius: 16px;
  --border: 0.25px solid #D0D1D1;
  --box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2);
}

html {
  font-size: var(--font-size);
  font-family: var(--font-family);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh; 
  margin: 0;
  padding: 0;
  animation: softScaleUp 0.5s ease-out;
}

header {
  background-color:var(--white);
  color:var(--dark-grey);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5rem 0 2rem;
}

.plan-logo {
  margin-top: -1rem;
  width: 250px;
}

.logo-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.logo-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--grey);
    transition: color 0.3s ease;
}

.logo-link:hover .logo-caption {
    color: var(--rl-blue);
}

.welcome-container {
  text-align: left;
  margin-bottom: 1.5rem;
}

.welcome-container h1 {
  font-weight: bolder;
  font-size: 2.2rem;
  margin: 5px 0;
}

.welcome-container p {
  color: var(--dark-grey);
  margin-top: 0;
}

/* Login Form */
#login-form-container {
  display: flex;
  place-content: center;
}

#login-form {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  border: var(--border);
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
}

#login-form > :nth-child(3) {
  margin-bottom: 12px;
}

.input-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--light-grey);
  border-radius: 12px;
  padding: 12px;
}

.input-container i {
  color: var(--blue-grey);
  transition: color 0.2s;
  width: 20px;
  text-align: center;
}

.input-container input {
  flex: 1;
  padding: 8px 12px;
  border: none;
  font-size: 1rem;
  outline: none;
  background-color: transparent;
  color: var(--dark-grey);
  text-align: left;
}

:focus,
:focus-within {
  border-color: var(--rl-blue);
}

.toggle-password:hover {
  cursor: pointer;
}

.input-container:focus-within .icon,
.toggle-password.selected {
  color:var(--blue);
}

#login-btn {
  width: 100%;
  padding: 1rem;
  background-color: var(--rl-blue);
  color: white;
  border: none;
  border-radius: 40px;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  margin-bottom: 1rem;
  font-family: var(--font-family);
}

#login-btn:hover {
  background-color: var(--hover-blue);
  cursor: pointer;
}

#forgot-password-contact {
  text-align: left;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

#forgot-password-contact a {
  color: var(--rl-blue);
  text-decoration: none;
}

#forgot-password-contact a:hover {
  text-decoration: underline;
}

/* Authentication Spinner */
.spinner-container {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(255,255,255,0.8);
  z-index: 99999;
}

.spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  margin-top: -100px;
  margin-left: -100px;
  border: 16px solid var(--light-grey);
  border-top: 16px solid var(--dark-blue);
  border-radius: 50%;
  width: 160px;
  height: 160px;
  animation: spin 2s linear infinite;
}

.spinner-text {
  position: fixed;
  top: 50%;
  left: 50%;
  margin-top: -160px;
  margin-left: -170px;
  font-weight: bold;
  font-size: 2.4rem;
  color: var(--dark-blue);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Footer */
footer {
  background-color: var(--white);
  color: var(--dark-grey);
  text-align: center;
  padding: 1rem;
  margin-top: auto;
}

footer p {
  font-size: 0.8rem;
  margin: 0;
}

.footer-logo {
  width: 120px;
  margin-bottom: 6px;
}

.legal-disclaimer {
  font-size: 10px;
  font-style: italic;
  color: #4f4f4f;
  text-align: center;
}

/* Animation */
@keyframes softScaleUp {
  from {
      transform: scale(0.98);
      opacity :0;
  }
  to {
      transform: scale(1);
      opacity: 1;
  }
}

/* Media Queries */
@media (max-width: 1024px) {

  .spinner-text {
    font-size: 2rem;
    margin-left: -155px
  }

  .plan-logo {
    width: 180px;
  }

  .welcome-container h1 {
    margin: 0.5rem 0;
    font-size: 2rem;
  }

  #login-form {
    margin: 10px;
    padding: 30px 
  }

  footer {
    padding: 1rem;
  }

  footer p {
    font-size: 12px;
  }

  .footer-logo {
      width: 100px;
  }
}

@media (max-width: 480px) {
  header {
    justify-content: flex-start;
    padding: 1rem;
    margin: 2rem 1rem 0rem;
  }

  #login-form {
    max-width: 320px;
    margin: 0;
    padding: 10px 20px;
    border: none;
    box-shadow: none;
  }

  #forgot-password-contact {
    font-size: 0.8rem;
  }

  footer {
    margin-top: 50px;
    padding: 0.5rem;
  }
}