@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #b67416;
  --primary-dark: #944d08;
  --text-color: #2d3748;
  --light-gray: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1605152276897-4f618f831968?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-color);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.particles-container {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.login-container {
  background-color: var(--white);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 450px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.login-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.logo-container {
  text-align: center;
  margin-bottom: 30px;
}

.logo-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: 0 5px 15px rgba(182, 116, 22, 0.3);
}

.logo-icon {
  color: var(--white);
  font-size: 32px;
}

.login-container h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: var(--primary-color);
}

.welcome-text {
  color: #6b7280;
  font-size: 14px;
  margin-top: 5px;
}

.login-form {
  margin-top: 30px;
}

.form-group {
  position: relative;
  margin-bottom: 25px;
}

.floating-label input {
  width: 100%;
  padding: 12px 0;
  font-size: 16px;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  background-color: transparent;
  outline: none;
  transition: var(--transition);
}

.floating-label label {
  position: absolute;
  top: 12px;
  left: 0;
  font-size: 16px;
  color: #6b7280;
  pointer-events: none;
  transition: var(--transition);
}

.floating-label input:focus ~ label,
.floating-label input:not(:placeholder-shown) ~ label {
  top: -15px;
  font-size: 12px;
  color: var(--primary-color);
}

.underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  transition: var(--transition);
}

.floating-label input:focus ~ .underline {
  width: 100%;
}

.password-toggle {
  position: absolute;
  right: 0;
  top: 12px;
  color: #6b7280;
  cursor: pointer;
  transition: var(--transition);
}

.password-toggle:hover {
  color: var(--primary-color);
}

.login-button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(182, 116, 22, 0.1);
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(182, 116, 22, 0.2);
}

.button-icon {
  margin-left: 10px;
  transition: var(--transition);
}

.login-button:hover .button-icon {
  transform: translateX(3px);
}

.error-message {
  margin-top: 15px;
  color: #ef4444;
  text-align: center;
  font-size: 14px;
  min-height: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
  font-size: 13px;
}

.footer-link {
  color: #6b7280;
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary-color);
}

.divider {
  margin: 0 10px;
  color: #e2e8f0;
}

/* Animation for error message */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.error-message.shake {
  animation: shake 0.4s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .login-container {
    padding: 30px 20px;
    margin: 0 15px;
  }
  
  .logo-circle {
    width: 70px;
    height: 70px;
  }
  
  .logo-icon {
    font-size: 28px;
  }
}