/* ─── Global Reset & Font ─── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to right, #e0f7fa, #e0f2f1);
  color: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  overflow: hidden;
  position: relative;
}

/* Decorative glow */
body::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #14b8a6 30%, transparent 70%);
  top: -120px;
  right: -120px;
  z-index: 0;
  filter: blur(100px);
  opacity: 0.3;
}

/* ─── Container ─── */
.container {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  padding: 45px 35px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 168, 142, 0.2);
  text-align: center;
  width: 100%;
  max-width: 420px;
  animation: fadeIn 1.2s ease-out;
  z-index: 2;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.container:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0, 168, 142, 0.3);
}

/* ─── Heading ─── */
h1 {
  font-size: 32px;
  font-weight: 700;
  color: #00a88e;
  margin-bottom: 22px;
  transition: color 0.4s ease;
}

/* ─── Icon ─── */
.container img.login-icon {
  width: 70px;
  margin-bottom: 20px;
  transition: transform 0.4s ease;
}

.container:hover img.login-icon {
  transform: scale(1.05);
}

/* ─── Form ─── */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ─── Input Fields ─── */
input {
  padding: 14px 16px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

input:hover {
  background-color: #ffffff;
  border-color: #00a88e;
}

input:focus {
  outline: none;
  border-color: #00a88e;
  box-shadow: 0 0 0 3px rgba(0, 168, 142, 0.25);
}

/* ─── Button ─── */
button {
  padding: 14px;
  background: linear-gradient(135deg, #00a88e, #00796b);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 168, 142, 0.25);
}

button:hover {
  background: linear-gradient(135deg, #00d1b2, #005a4f);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 168, 142, 0.35);
}

/* ─── Google Button ─── */
.google-btn {
  background-color: white;
  color: white;
  border: 1px solid #ccc;
  font-weight: 600;
}

.google-btn:hover {
  background-color: #f2f2f2;
  color:white;
}

/* ─── Feedback Messages ─── */
.error-message {
  color: #e53935;
  font-size: 14px;
  margin-top: 5px;
  transition: opacity 0.3s ease;
}

.success-message {
  display: none;
  font-size: 16px;
  color: #00a88e;
  margin-top: 20px;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

/* ─── Animations ─── */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────── Responsive ─────────── */
@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 35px 22px;
    border-radius: 16px;
  }

  h1 {
    font-size: 24px;
  }

  input,
  button {
    font-size: 14px;
    padding: 12px;
  }
}


/* Dark mode toggle button */
.dark-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #e0f2f1;
  border: none;
  border-radius: 50%;
  padding: 10px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.dark-mode {
  background: #121212;
  color: #eee;
}

body.dark-mode .container {
  background: rgba(40, 40, 40, 0.85);
  color: #eee;
}

body.dark-mode input,
body.dark-mode .google-btn {
  background: #1e1e1e;
  color: #eee;
  border: 1px solid #444;
}

body.dark-mode .google-btn:hover {
  background: #333;
}

.password-wrap {
  position: relative;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
}

.remember-wrap {
  text-align: left;
  font-size: 14px;
  margin-top: -8px;
}

.support-msg {
  margin-top: 20px;
  font-size: 13px;
}

.support-msg a {
  color: #00a88e;
  text-decoration: none;
}


a#forgot-password {
  color: #0d9488;
  font-size: 14px;
  margin-top: -8px;
  display: inline-block;
  text-decoration: none;
  transition: color 0.3s ease;
}

a#forgot-password:hover {
  color: #0f766e;
  text-decoration: underline;
}

.hidden {
  display: none;
}

#reset-password-form {
  margin-top: 20px;
  animation: fadeIn 0.4s ease-in-out;
}

#reset-password-form input {
  width: 100%;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

#reset-password-form button {
  width: 100%;
  background: #0d9488;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

#reset-password-form button:hover {
  background: #0f766e;
}

.status-message {
  font-size: 14px;
  margin-top: 10px;
  color: green;
}

.status-message.error {
  color: red;
}
.hidden {
  display: none;
}

/* Slide in animation for form switching */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in {
  animation: slideIn 0.3s ease forwards;
}
#back-to-login{
  background: linear-gradient(135deg, #0f766e, #00f2fe);
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#back-to-login:hover {
  background: linear-gradient(135deg, #00f2fe, #0f766e);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

#back-to-login:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
h3{
  color:#005a4f;
}
.signup-link {
  text-align: center;
  margin-top: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #555;
}

.signup-link a {
  color: #0f766e;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.signup-link a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -2px;
  background: #0f766e;
  transition: width 0.3s ease;
}

.signup-link a:hover {
  color: #0f766e;
}

.signup-link a:hover::after {
  width: 100%;
}
