:root {
  --primary-color: #4e73df;
  --secondary-color: #224abe;
  --success-color: #1cc88a;
  --danger-color: #e74a3b;
  --background-color: #f8f9fc;
  --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: var(--background-color);
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e7f0 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 40px 30px;
  background: white;
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.brand {
  text-align: center;
  margin-bottom: 30px;
}

.brand h2 {
  color: #333;
  font-weight: 600;
  margin-bottom: 8px;
}

.brand p {
  color: #888;
  font-size: 0.9rem;
}

.message {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  text-align: center;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-control {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: none;
  background-color: #f7f7f7;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.25);
  background-color: #fff;
}

.form-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  transition: color 0.3s ease;
}

.form-control:focus + i {
  color: var(--primary-color);
}

.form-check {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.form-check-label {
  color: #777;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.form-check-input {
  margin-right: 8px;
  cursor: pointer;
}

.forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: var(--primary-color);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(78, 115, 223, 0.3);
}

.btn-login:hover {
  background: var(--secondary-color);
  box-shadow: 0 8px 25px rgba(78, 115, 223, 0.45);
  transform: translateY(-2px);
}

.btn-login:active {
  transform: translateY(0);
}

.social-separator {
  position: relative;
  text-align: center;
  margin: 30px 0 25px;
}

.social-separator span {
  display: inline-block;
  padding: 0 15px;
  background: #fff;
  font-size: 0.9rem;
  color: #888;
  position: relative;
  z-index: 1;
}

.social-separator:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e0e0e0;
  z-index: 0;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f7f7f7;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-btn i {
  font-size: 1.2rem;
}

.social-btn.facebook {
  color: #3b5998;
}

.social-btn.google {
  color: #db4437;
}

.social-btn.apple {
  color: #000;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.signup-link {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #666;
}

.signup-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.signup-link a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-container {
  animation: fadeIn 0.6s ease forwards;
}