/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f1f1;  /* Soft pink background */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    background: linear-gradient(135deg, #ff4f58, #ffb5a7); /* Modern gradient background */
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    color: white;  /* Contrasting color for text */
    margin-bottom: 10px; /* Reduced margin */
    font-family: 'Pacifico', cursive; /* Fun font for the header */
}

h3 {
    text-align: center;
    font-size: 1.2rem;
    color: white;
    margin-top: -5px; /* To bring "Login" closer to the first line */
    font-family: 'Roboto', sans-serif; /* Cleaner font */
}

/* Logo Image in a Circular Border */
.logo {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 50%; /* Circle border */
    border: 5px solid black;  /* Border color */
    object-fit: cover;
}

/* Login Form Container (Card) */
.form-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px 40px;  /* Adjust padding to reduce height */
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
    text-align: left; /* Align text to the left */
    animation: fadeIn 1s ease-out; /* Fade-in effect for form */
}

/* Add fade-in animation for the form */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
}

/* Input Styles */
input[type="text"],
input[type="password"], 
input[type="email"] {
    padding: 12px;
    margin-bottom: 15px; /* Reduced margin for tighter form */
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    transition: 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #ff4f58;
    outline: none;
    box-shadow: 0 0 10px rgba(255, 79, 88, 0.4); /* Soft glow effect */
}

/* Button Styles */
button {
    padding: 12px;
    background-color: #ff4f58;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Roboto', sans-serif;
    margin-top: 15px; /* Space between button and fields */
}

button:hover {
    background-color: #ff2a3e;  /* Darker pink for hover effect */
    transform: scale(1.05);  /* Slight scale-up effect */
}

/* Forgot Password Link */
p {
    text-align: center;
    font-size: 14px;
    margin-top: 15px;
}

a {
    text-decoration: none;
    color: #ff4f58;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* Error Message */
.error-message {
    color: red;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

/* Responsive Design for Different Screen Sizes */

/* Large Screens and Desktops */
@media (min-width: 1200px) {
    .form-container {
        padding: 40px 50px;
        width: 35%;  /* Form container takes up 35% of the screen width */
    }

    h2 {
        font-size: 2.5rem;
    }

    button {
        padding: 14px;
    }

    input[type="text"],
    input[type="password"] {
        font-size: 16px;
    }
}

/* Tablets and Small Laptops */
@media (max-width: 1200px) {
    .form-container {
        padding: 30px 40px;
        width: 50%;  /* Form container takes up 50% of the screen width */
    }

    h2 {
        font-size: 2rem;
    }

    button {
        padding: 12px;
        font-size: 16px;
    }

    input[type="text"],
    input[type="password"] {
        font-size: 16px;
    }

    .error-message {
        font-size: 14px;
    }
}

/* Medium and Small Tablets */
@media (max-width: 768px) {
    .form-container {
        padding: 25px 20px;
        width: 60%;  /* Form container takes up 60% of the screen width */
    }

    h2 {
        font-size: 1.8rem;
    }

    button {
        padding: 12px;
        font-size: 15px;
    }

    input[type="text"],
    input[type="password"] {
        font-size: 15px;
    }

    .error-message {
        font-size: 14px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .form-container {
        padding: 20px 15px;
        width: 90%;  /* Form container takes up 90% of the screen width */
        max-width: 400px;  /* Prevent the form from stretching too wide */
    }

    h2 {
        font-size: 1.6rem;
    }

    input[type="text"],
    input[type="password"] {
        font-size: 14px;
        padding: 10px;
    }

    button {
        padding: 12px;
        font-size: 14px;
    }

    .error-message {
        font-size: 12px;
    }

    p {
        font-size: 12px;
    }
}
