@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #00605f, #107479);
  overflow: hidden;
}

/* Glass overlay */
.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
}

/* Login Card */
.login-section {
  position: relative;
  width: 380px;
  padding: 40px;
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.logo {
  text-align: center;
  margin-bottom: 15px;
}

.logo i {
  font-size: 28px;
  color: #00605f;
}

.logo h2 {
  font-size: 22px;
  color: #00605f;
  margin-top: 5px;
}

h3 {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
}

.input-group {
  position: relative;
  margin-bottom: 18px;
}

.input-group i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #888;
}

.input-group input {
  width: 100%;
  padding: 12px 12px 12px 38px;
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: 0.3s;
}

.input-group input:focus {
  border-color: #00605f;
  box-shadow: 0 0 0 2px rgba(0,96,95,0.2);
  outline: none;
}

.options {
  margin-bottom: 10px;
  font-size: 14px;
}

.error-message {
  color: red;
  font-size: 14px;
  height: 18px;
  margin-bottom: 10px;
}

button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #00605f;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}

button:hover {
  background: #107479;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Loading */
.loading {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}


.forgot {
  text-align: right;
  margin-bottom: 15px;
}

.forgot a {
  font-size: 14px;
  color: #00605f;
  text-decoration: none;
}

.forgot a:hover {
  text-decoration: underline;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 30px;
  width: 300px;
  border-radius: 12px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.modal-content input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.modal-content button {
  width: 100%;
  padding: 10px;
}

/* Reset Button Loader */
.reset-loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Success Message */
.reset-message {
  font-size: 14px;
  margin-top: 10px;
  height: 18px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #00605f;
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: 0.4s ease;
  font-size: 14px;
  z-index: 999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.close {
  position: absolute;
  right: 20px;
  top: 15px;
  cursor: pointer;
  font-size: 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media(max-width:420px){
  .login-section{
    width: 90%;
    padding: 30px;
  }
}