* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
html {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f8;
    /* background-color: rgb(54, 69, 76); */
    height: 100%;
}

.login-container {
    display: flex;
    height: 100vh;
}

.login-left {
    /* background: linear-gradient(135deg, #1e3c72, #2a5298); */
    background-color: rgb(54, 69, 76);
    color: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-left img.illustration {
    width: 60%;
    margin-top: 30px;
}

.login-left .branding h1 {
    font-size: 32px;
    margin: 10px 0;
}

.login-left .branding p {
    font-size: 22px;
    margin: 10px 0;
    font-weight: 500;
}

.login-left .branding small {
    font-size: 16px;
    color: #ddd;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.login-form {
    width: 90%;
    max-width: 400px;
    background: #fff;
    padding: 40px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.login-form h2 {
    font-size: 26px;
    margin-bottom: 10px;
    text-align: center;
}

.login-form .subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 25px;
}

.hidden {
    display: none;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.actions {
    text-align: right;
    margin-bottom: 20px;
}

.actions a {
    font-size: 13px;
    color: #1e3c72;
    text-decoration: none;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

button {
    padding: 12px;
    font-size: 15px;
    /* background: #1e3c72; */
    background: rgb(54, 69, 76);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
}

button.secondary {
    background: transparent;
    border: 1px solid #ccc;
    color: #333;
}

button:hover {
    opacity: 0.9;
}

.terms {
    font-size: 12px;
    color: #777;
    margin-top: 25px;
    text-align: center;
}

.terms a {
    color: #2a5298;
    text-decoration: none;
}

/* Animation for form on load */
@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form {
    animation: fadeSlideIn 0.8s ease forwards;
}

/* Button hover animation */
button:hover {
    transform: scale(1.02);
    opacity: 0.9;
    transition: transform 0.2s ease, opacity 0.3s ease;
}


/* Responsive */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-left {
        display: none;
    }

    .login-right {
        flex: unset;
        height: 100vh;
    }
}