/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    background-color: #222222;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #f1f1f1;
    padding: 20px; /* Add some padding for better spacing on mobile */
}

form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 450px; /* Max width for larger screens */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
    background-color: #333333;
    transition: transform 0.3s ease-in-out;
}

form:hover {
    transform: scale(1.03);
}

/* Form Heading */
form h1 {
    font-size: 30px;
    color: #ffffff;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

/* Input Group */
.input-group {
    display: flex;
    flex-direction: column;
}

/* Input Fields */
input {
    padding: 14px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #444444;
    background-color: #555555;
    color: #f1f1f1;
    font-size: 16px;
    outline: none;
    transition: border 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

input::placeholder {
    color: #ccc;
}

/* Focus States */
input:focus {
    border-color: #4CAF50;
    background-color: #444444;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.7); /* Add shadow on focus */
}

/* Forgot Password Link */
.forgot {
    margin-top: -15px;
    text-align: right;
}

.forgot a {
    color: #4CAF50;
    text-decoration: none;
    font-size: 14px;
}

.forgot a:hover {
    text-decoration: underline;
}

/* Sign Up Text */
.signup {
    text-align: center;
    margin-top: 10px;
}

.signup a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

.signup a:hover {
    text-decoration: underline;
}

/* Submit Button */
button {
    padding: 14px;
    background-color: #4CAF50;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 20px;
}

button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Add subtle shadow on hover */
}

button:active {
    background-color: #3e8e41;
    transform: translateY(0);
    box-shadow: none;
}
