/****************************************************
  1) Import Lexend Exa (if not already in base.html)
****************************************************/
@import url('https://fonts.googleapis.com/css2?family=Lexend+Exa:wght@300;400;600;700&display=swap');

/* Teal brand colors */
:root {
  --teal-main: #008080;
  --teal-dark: #006666;
  /* If you want a "light teal" for text in dark mode, define it here if needed: */
  --teal-light: #66ffff;
}

/****************************************************
  2) Basic Resets & Body
*****************************************************/
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Lexend Exa', sans-serif;
}

/****************************************************
  3) Login Section Container
*****************************************************/
.login-section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.login-container {
  display: flex;
  width: 100%;
  max-width: 1400px;
  height: 100vh;
}

/****************************************************
  4) Left Section (light mode by default)
*****************************************************/
.left-section {
  width: 440px;
  padding: 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #f8f8f8; /* Light mode background */
  animation: left-section 1s forwards;
  animation-delay: 1s;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Dark-mode override for the left section */
:root[data-theme="dark"] .login-container .left-section {
  background-color: #001f3f !important;
  color: #fff !important;
}

/* Animate the left section */
@keyframes left-section {
  0% {
    opacity: 0;
    width: 0;
  }
  100% {
    opacity: 1;
    width: 440px;
  }
}

/****************************************************
  5) Right Section
*****************************************************/
.right-section {
  flex: 1;         
  background-image: url("icons/login-banner.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  /* Override with a different image or overlay for dark mode if desired */
}

/****************************************************
  6) Login Header
*****************************************************/
.login-header {
  text-align: center;
  margin-bottom: 2rem;
}
.login-header .title {
  margin: 0;
  color: var(--teal-main);
  font-size: 2rem;
  font-weight: 700;
}
/* Dark-mode override for header title => light teal text */
:root[data-theme="dark"] .login-header .title {
  color: var(--teal-light) !important; /* #66ffff or your chosen "light teal" */
}

.login-header .sub-title {
  margin-top: 0.5rem;
  font-weight: 400;
  font-size: 1rem;
  color: rgba(0,0,0,0.5);
}
/* Dark-mode override for sub-title => lighter text */
:root[data-theme="dark"] .login-header .sub-title {
  color: rgba(255,255,255,0.7) !important;
}

/****************************************************
  7) Form + Fields
*****************************************************/
.login-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.form-field-group {
  margin-bottom: 1rem;
}
/* Light mode default for .form-field */
.form-field {
  width: 100%;
  height: 50px;
  font-size: 14px;
  padding: 0 10px;
  border: 2px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.2s;
  outline: none;
  background-color: #fff;
  color: #333;
}
.form-field:hover {
  border-color: #bbb;
}
.form-field:focus {
  border-color: var(--teal-main);
}

/* Dark-mode override for .form-field */
:root[data-theme="dark"] .login-container .left-section .form-field {
  background-color: #001f3f !important;
  color: #fff !important;
  border: 2px solid #666 !important;
}
:root[data-theme="dark"] .login-container .left-section .form-field:hover {
  border-color: #999 !important;
}
:root[data-theme="dark"] .login-container .left-section .form-field:focus {
  border-color: var(--teal-main) !important;
}

/* Placeholder text in light/dark mode */
.login-container .left-section .form-field::placeholder {
  color: #999;
}
:root[data-theme="dark"] .login-container .left-section .form-field::placeholder {
  color: #ccc !important;
}

/* Forgot password link */
.forgot-password {
  display: block;
  text-align: right;
  margin: 5px 0 12px;
  z-index: 999;
}
.forgot-password .fp-link {
  color: #000;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s;
}
.forgot-password .fp-link:hover {
  color: var(--teal-main);
}
/* Dark-mode override => link is white */
:root[data-theme="dark"] .forgot-password .fp-link {
  color: #fff !important;
}

/****************************************************
  8) Login Button (base styles)
*****************************************************/
.login-button {
  margin-top: 4px;
  padding: 14px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 1px;
  border: none;
  border-radius: 3px;
  background-color: var(--teal-main);
  cursor: pointer;
  transition: background-color 0.5s;
}
.login-button:hover {
  background-color: var(--teal-dark);
  box-shadow: 0 0 8px -2px #000;
}
/* If you want to unify with wave-button styling, add wave-button below */

/****************************************************
  9) Default "move" Animations for Form Items
*****************************************************/
.animation {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-40px);
  animation: move 1s forwards;
}
@keyframes move {
  100% {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
.animation.a1 { animation-delay: 2s; }
.animation.a2 { animation-delay: 2.1s; }
.animation.a3 { animation-delay: 2.2s; }
.animation.a4 { animation-delay: 2.3s; }
.animation.a5 { animation-delay: 2.4s; }
.animation.a6 { animation-delay: 2.5s; }

/****************************************************
  10) Bounce-in animation for Forgot Password message
*****************************************************/
#forgotPwdMsg {
  opacity: 0;
  transform: translateY(-40px);
  transition: none;
}
/* Dark-mode override => text white */
:root[data-theme="dark"] #forgotPwdMsg {
  color: #fff !important;
}
@keyframes forgotPwdBounce {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  50% {
    opacity: 0.8;
    transform: translateY(15px);
  }
  70% {
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.show-bounce {
  animation: forgotPwdBounce 0.4s forwards;
}

/****************************************************
  11) Wave Button (Optional)
****************************************************/
/* Basic wave-button container */
.wave-button {
  position: relative;
  display: inline-block;
  border: none;
  outline: none;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  border-radius: 4px;
  margin: 0.5rem 0.25rem;
  padding: 0.75rem 1.75rem;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  font-weight: 600;
  color: #fff; /* text color */
}

/* Teal wave variant */
.btn-teal-wave {
  background-color: #008080; /* teal */
}
.btn-teal-wave:hover {
  background-color: #009999; /* hover shade */
}

/* The wave “circle” behind the text */
.wave-button .wave {
  width: 350px;
  height: 300px;
  background-color: #00a2a2; 
  box-shadow: inset 0 0 50px rgba(0,0,0,0.3);
  position: absolute;
  left: 0;
  top: -120px;
  z-index: 0; 
  transition: 0.4s;
}
.wave-button:hover .wave {
  top: -160px;
}

/* Rotating circles for the wave effect */
.wave-button .wave::before,
.wave-button .wave::after {
  width: 200%;
  height: 200%;
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -75%);
  border-radius: 45%;
  animation: waveSpin 6s linear infinite;
}
.wave-button .wave::before {
  background-color: rgba(0, 122, 122, 0.7);
  animation-duration: 6s; 
}
.wave-button .wave::after {
  background-color: rgba(0, 122, 122, 0.4);
  animation-duration: 12s; 
}

/* Keep the text above the wave */
.wave-button span {
  position: relative;
  z-index: 1;
}

/* Keyframes for wave rotation */
@keyframes waveSpin {
  0% {
    transform: translate(-50%, -75%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -75%) rotate(360deg);
  }
}
