/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 450px;
  padding: 20px;
}

/* Login Container */
.login-container {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Login Header */
.login-header {
  background-color: #1a73e8;
  color: white;
  padding: 30px;
  text-align: center;
}

.login-header h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.login-header p {
  font-size: 14px;
  opacity: 0.8;
}

/* Login Form */
.login-form {
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 15px;
  color: #aaa;
}

.input-group input {
  width: 100%;
  padding: 12px 15px 12px 40px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.input-group input:focus {
  border-color: #1a73e8;
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.password-toggle {
  position: absolute;
  right: 15px;
  color: #aaa;
  cursor: pointer;
}

.password-toggle:hover {
  color: #1a73e8;
}

.error-message {
  color: #e53935;
  font-size: 12px;
  margin-top: 5px;
  min-height: 18px;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input {
  margin-right: 8px;
}

.forgot-password {
  color: #1a73e8;
  font-size: 14px;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* Login Button */
.login-btn {
  width: 100%;
  padding: 12px;
  background-color: #1a73e8;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-btn:hover {
  background-color: #1557b0;
}

.login-btn:active {
  transform: translateY(1px);
}

/* Login Status */
.login-status {
  text-align: center;
  margin-top: 15px;
  padding: 10px;
  border-radius: 5px;
  font-size: 14px;
  display: none;
}

.login-status.success {
  display: block;
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.login-status.error {
  display: block;
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

/* Login Footer */
.login-footer {
  padding: 15px;
  text-align: center;
  background-color: #f5f5f5;
  color: #757575;
  font-size: 12px;
}

/* Responsive Styles */
@media (max-width: 480px) {
  .container {
    padding: 10px;
  }

  .login-header {
    padding: 20px;
  }

  .login-form {
    padding: 20px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .forgot-password {
    margin-top: 10px;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-container {
  animation: fadeIn 0.5s ease-out;
}
