/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
  background: #111;
  font-weight: bold;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Login Container */
.login-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  animation: fadeIn 0.8s ease;
}

.login-card {
  background: #1a1a1a;
  padding: 3rem 2.5rem;
  border-radius: 15px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 25px rgba(255,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.login-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(255,0,0,0.5);
}

.login-card h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #ff0000;
  font-size: 1.8rem;
}

/* Floating Labels */
.form-group {
  position: relative;
  margin-bottom: 1.8rem;
}

.form-group input {
  width: 100%;
  padding: 0.85rem 0.5rem;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: #ff0000;
}

.form-group label {
  position: absolute;
  top: 50%;
  left: 0.8rem;
  color: #888;
  font-size: 1rem;
  pointer-events: none;
  transform: translateY(-50%);
  transition: 0.2s ease all;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: -0.6rem;
  left: 0.6rem;
  font-size: 0.75rem;
  background: #1a1a1a;
  padding: 0 0.3rem;
  color: #ff0000;
}

/* Password Toggle */
.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  transform: translateY(-50%);
  cursor: pointer;
  color: #ff0000;
  font-size: 0.9rem;
}

/* Options row */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.form-options a {
  color: #ff0000;
  text-decoration: none;
}

.form-options a:hover {
  text-decoration: underline;
}

.remember-me input {
  margin-right: 0.3rem;
}

/* Button */
.btn-primary {
  width: 100%;
  padding: 0.85rem;
  background: #ff0000;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
  background: #e60000;
  transform: translateY(-2px);
}

/* Form Message */
.form-message {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #ff6666;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Signup link */
.signup-link {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.signup-link a {
  color: #ff0000;
  text-decoration: none;
}

.signup-link a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #111;
  color: #888;
  font-size: 0.85rem;
}

/* Animations */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px);}
  100% { opacity: 1; transform: translateY(0);}
}

/* Responsive */
@media (max-width: 576px) {
  .login-card {
    padding: 2rem 1.5rem;
  }
}