body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f3f6f9;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.login-wrapper {
    display: flex;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 1100px;
    max-width: 90%;
}

.login-left {
    border-right:1px solid black;
    color: black;
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.login-left img {
    width: 99%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.login-left h3 {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

.login-right {
    width: 60%;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-right h2 {
    margin-bottom: 20px;
    color: #1976d2;
    text-align: center;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
}

button {
    background-color: #1976d2;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    margin-top: 10px;
    transition: 0.3s;
}

button:hover {
    background-color: #125aa3;
}

.error {
    color: red;
    text-align: center;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        width: 90%;
    }

    .login-left, .login-right {
        width: 100%;
        padding: 20px;
    }

    .login-left {
        border-bottom: 4px solid #1976d2;
    }
}

.register-link {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.register-link span {
    color: #666;
}

.register-link a {
    color: #1976d2;
    font-weight: 600;
    margin-left: 5px;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}


.login-error {
    background: #ffdddd;
    color: #d40000;
    border-left: 5px solid #d40000;
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 15px;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

/* Optional: Smooth Fade-in */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-5px);}
    to {opacity: 1; transform: translateY(0);}
}
