/* General styles */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1e1e1e, #0d0d0d);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

/* Login Container */
.login-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

/* Slight Scale Effect on Hover */
.login-container:hover {
    transform: scale(1.02);
}

/* Headings */
h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Form */
#login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Input fields & button - Ensuring same width */
.input-group, .btn {
    width: 100%;
    max-width: 320px;
}

/* Input fields */
input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc; /* Subtle border to define edges */
    border-radius: 6px; /* Adjusted to match button */
    background: #e8f0fe;
    color: #000;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    text-align: center;
    transition: background 0.3s ease, border 0.2s ease;
}

input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

input:focus {
    background: #dce5f5;
    border: 1px solid #007bff; /* Highlight focus */
}

/* Fixing Spacing Between Input Fields */
.input-group {
    margin-bottom: 15px; /* Adds space between inputs */
}

/* Button */
.btn {
    width: 100%;
    padding: 14px;
    background: #007bff;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-top: 15px; /* Increased space between input and button */
    border-radius: 6px; /* Matches input fields */
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* Error Message */
.error-message {
    color: #ff4747;
    font-size: 14px;
    margin-bottom: 15px;
    animation: fadeIn 0.5s ease-in-out;
}

/* Register Link */
.register-link {
    margin-top: 15px;
    font-size: 14px;
}

.register-link a {
    color: #00c8ff;
    text-decoration: none;
    font-weight: bold;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
