@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;500&family=Poppins:wght@300;400;500;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1d2671, #c33764);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    color: #333;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 900px;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.7s ease-out;
}

.image-container {
    background: url('../images/login.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 40px;
}

.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: inherit;
}

.image-container h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    z-index: 1;
    text-align: center;
    font-weight: bold;
    letter-spacing: 2px;
}

.image-container p {
    z-index: 1;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.4;
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
}

h2 {
    font-size: 2rem;
    color: #444;
    margin-bottom: 24px;
    font-weight: 600;
}

label {
    display: block;
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
    margin-bottom: 8px;
}

input[type="text"],
input[type="password"],
input[type='email']{
    width: 100%;
    padding: 14px 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type='email']:focus{
    border-color: #0077cc;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

button {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background-color: #4A00E0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: #8E2DE2;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

p {
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

a {
    color: #4A00E0;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

/* Error Message Styling */
.error {
    color: #ff5252;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        padding: 40px 20px;
        width: 100%;
    }
     .image-container {
        display: none;
    }
    .login-container {
        width: 90%;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .image-container {
        display: none;
    }
    .login-container {
        width: 90%;
        grid-template-columns: 1fr;
    }
    .form-container {
        padding: 30px 15px;
        width: 100%;
        margin: auto;
    }

    h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    button {
        width: 100%;
        padding: 14px;
    }
}
