/* login.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

.auth-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  background: linear-gradient(135deg, #657993 0%, #475567 100%);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 450px;
  padding: 40px;
  transition: transform 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.auth-card h2 {
  color: white;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 5px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.auth-tab.active {
  background: rgba(255, 255, 255, 0.95);
  color: #475567;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-error {
  background: rgba(255, 82, 82, 0.9);
  color: white;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.auth-forms-container {
  width: 100%;
}

.auth-form {
  width: 100%;
}

.auth-form.hidden {
  display: none;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.field input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: white;
  transition: all 0.3s ease;
}

.field input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.password-field {
  position: relative;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  flex: 1;
  padding-right: 45px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye-icon {
  width: 20px;
  height: 20px;
  fill: #475567;
  transition: fill 0.3s ease;
}

.toggle-password:hover .eye-icon {
  fill: #2e3846;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: white;
  border: none;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #475567;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  margin-top: 10px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-link {
  width: 100%;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  cursor: pointer;
  margin-top: 15px;
  transition: color 0.3s ease;
  text-decoration: underline;
}

.btn-link:hover {
  color: white;
}

#verifyBox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}

#verifyBox h3 {
  color: white;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 10px;
}

#verifyBox input {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  text-align: center;
  letter-spacing: 2px;
  color: white;
}

#verifyBox input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
}

.reset-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.reset-content {
  background: linear-gradient(135deg, #657993 0%, #475567 100%);
  border-radius: 20px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.reset-content h3 {
  color: white;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 20px;
  text-align: center;
}

.reset-content .field {
  margin-bottom: 20px;
}

.reset-content input {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  color: white;
  font-size: 14px;
}

.reset-content input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
}

.stepAll {
  width: 100%;
}

#closeResetModal {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

#closeResetModal:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 30px 20px;
  }
  
  .auth-tab {
    padding: 10px 16px;
    font-size: 12px;
  }
  
  .reset-content {
    padding: 30px 20px;
  }
}