*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #1e1e1e;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background-color: rgba(30, 30, 30, 0.9);
    padding: 20px;
    width: 500px;
    border-radius: 10px;
    box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.2);
    max-width: 100%;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
} 

h2 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 20px;
    color: #ccc;
}

input[type="email"], input[type="password"] {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #2c2c2c;
    color: #ccc;
    margin-bottom: 15px;
}

input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

button[type="submit"] {
  width: 100%;
padding: 16px;
color: #fff;
background: #006057;
font-size: 16px;
border: none;
border-radius: 12px; /* More rounded corners */
cursor: pointer;
transition: transform 0.2s ease, background-color 0.3s ease;
touch-action: manipulation;
}

button[type="submit"]:hover {
  transform: scale(0.95);
    background-color: #009688;
}

button[type="submit"].haptic {
-webkit-tap-highlight-color: transparent;
}

.error-message {
    color: red;
    font-size: 14px;
    text-align: center;
    margin-bottom: 15px;
}

.register-link, .forgot-password-link {
text-align: center;
margin-top: 15px;
font-size: 14px;
color: #ccc;
}

.register-link a, .forgot-password-link a {
    color: #007bff;
    text-decoration: none;
}

.register-link a:hover, .forgot-password-link a:hover {
    text-decoration: underline;
}
#stars-canvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1; /* Place behind content */
background: #1e1e1e; /* Match your existing background */
}