@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body, html {
  height: 100%;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

/* 
  Waves Animation
*/

.login-screen {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-screen::before,
.login-screen::after {
  content: '';
  position: absolute;
  width: 1400px;
  height: 1400px;
  border-radius: 40%;
  z-index: -1;
}

.login-screen::before {
  left: 60%; 
  bottom: -90%; 
  background-color: #e7aa04;
  animation: wawes 18s infinite ease-in-out;
}

.login-screen::after {
  left: 70%;
  bottom: -95%;
  background-color: #f0bf0b; 
  animation: wawes 15s infinite ease-in-out;
}

@keyframes wawes {
  0%, 100% { 
    transform: translateX(0) rotate(0); 
  }
  50% { 
    transform: translateX(-45px) rotate(190deg); 
  }
}
.login-screen.animate-waves::before {
  left: 60%; 
  bottom: -90%; 
  animation: fillScreenWave 3s forwards; 
}
.login-screen.animate-waves::after {
  left: 70%;
  bottom: -95%;
  animation: fillScreenWave 3s forwards; 
}

@keyframes fillScreenWave {
  to {
    width: 2000px;
    height: 2000px;
    transform: translate(-50%, -50%) scale(5); 
  }
}


/* 
  Login Page
*/

.login-card {
    background: #fff;
    padding: 2em;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 0 2em #ac200433;
    text-align: center;
}
.login-logo {
  width: 140px; 
  margin-bottom: 4em;
  margin-top: 2em;
}
.form-group {
  background: #f0be0b0b; 
  border-radius: 10px;
  margin-bottom: 1em;
  padding: 10px;
  display: block;
}

.label {
  display: block; 
  color: #707070;
  margin-bottom: 5px; 
  text-align: left;
  margin-left: 0.15em;
}

.input-icon-container {
  display: flex;
  align-items: center;
  width: 100%; 
  margin-left: 0.15em;
}

.icon {
  position: relative; 
  color: #bc4304;
}

.form-group input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.9em;
}

.form-group input:focus {
  outline: none;
}

#password{
  padding-left: 1em;
}

.email-icon:before {
    content: '\2709'; 
}

.password-icon:before {
    content: '\1F512'; 
}

.submit-button {
    width: 100%;
    padding: 1em;
    border: none;
    border-radius: 10px;
    background-color: #ffba08;
    color: white;
    font-size: 1em;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #d37904;
}

.forgot-password-link {
    display: block;
    color: #5e5e5e;
    text-decoration: none;
    font-size: 0.9em;
    margin-top: 2em;
    margin-bottom: 4em;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* 
  Recovery Password View 
*/

.recovery-button {
  width: 100%;
  padding: 15px;
  margin-top: 20px;
  border: none;
  border-radius: 10px;
  background-color: #58de36; 
  color: white;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.recovery-button:hover {
  background-color: #03da03; 
}

.back-to-login-link {
  display: inline-block;
  color: #bc4304; 
  text-decoration: none;
  font-size: 0.9em;
  margin-top: 30px;
  transition: color 0.3s ease;
}

.back-to-login-link:hover {
  color: #ac1f04; 
  text-decoration: underline; 
}

.fa-envelope {
  color: #bc4304; 
  margin-right: 10px;
}

.message-container {
  border-radius: 5px;
  padding: 10px 7px;
  margin-top: 20px;
  margin-left: 40px;
  margin-right: 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  display: none;
  font-size: 12px;
  position: relative;
  transition: opacity 0.3s ease;
}
.success {
  background-color: #dff0d8;
  border-left: 5px solid #3c763d;
  color: #3c763d;
}

.error {
  background-color: #f2dede;
  border-left: 5px solid #a94442;
  color: #a94442;
}

.info {
  background-color: #d9edf7;
  border-left: 5px solid #31708f;
  color: #31708f;
}

.warning {
  background-color: #fcf8e3;
  border-left: 5px solid #8a6d3b;
  color: #8a6d3b;
}

.message-container.show {
  display: block;
  opacity: 1;
}

.message-icon {
  position: absolute;
  top: 50%;
  left: -30px;
  transform: translateY(-50%);
  font-size: 20px;
}

/*
  Password Change 
*/

.reset-button {
  width: 100%;
  padding: 1em;
  border: none;
  border-radius: 10px;
  background-color: #ffba08;
  color: white;
  font-size: 1em;
  cursor: pointer;
}

.reset-button:hover {
  background-color: #d37904;
}
#repeat-password{
  padding-left: 1em;
}

@keyframes fadeInOut {
  0%, 90% { opacity: 1; }
  100% { opacity: 0; }
}


/*
  Media Queries
*/

@media (max-width: 600px) {
    .login-card {
        padding: 1.8em;
        max-width: 300px;
    }
}
@media (max-width: 380px) {
  .login-card {
      padding: 1.4em;
      max-width: 250px;
  }
}

