* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Cool gradient background */
  background: linear-gradient(45deg, #6a11cb 0%, #2575fc 100%);
}

.login-card {
  background: rgba(255, 255, 255, 0.15); /* Semi-transparent */
  backdrop-filter: blur(10px); /* Frosted glass effect */
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 40px;
  border-radius: 20px;
  width: 350px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  text-align: center;
  color: white;
}

h1 { margin-bottom: 10px; font-size: 24px; }
p { margin-bottom: 30px; font-size: 14px; opacity: 0.8; }

.input-group { margin-bottom: 20px; }

input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: white;
  outline: none;
  transition: 0.3s;
}

input::placeholder { color: rgba(255, 255, 255, 0.7); }

input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

.login-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: #2575fc;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
}

.login-btn:hover {
  background: #2575fc;
  color: #fff;
  transform: translateY(-2px);
}

.footer { margin-top: 25px; font-size: 12px; }
.footer a { color: white; text-decoration: none; font-weight: bold; }
.footer span { display: block; margin-top: 10px; opacity: 0.7; }

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .login-card {
    width: 90%; /* Card takes up more width on tablets */
    padding: 30px;
  }
}

@media screen and (max-width: 480px) {
  body {
    padding: 20px; /* Prevents card from touching screen edges */
  }

  .login-card {
    width: 100%;
    padding: 25px 20px;
    box-shadow: none; /* Optional: cleaner look for tiny screens */
  }

  h1 {
    font-size: 20px; /* Slightly smaller text for mobile */
  }

  input, .login-btn {
    padding: 14px; /* Larger tap targets for fingers */
    font-size: 16px; /* Prevents iOS auto-zoom on focus */
  }
}
