body {
    margin: 0;
    height: 100vh;
    font-family: 'Segoe UI', sans-serif;
}

/* Background */
.login-bg {
    height: 100%;
    background: linear-gradient(135deg, #0f6b3f, #C8D539);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main container (SMALLER) */
.login-container {
    width: 780px;              /* ⬅ smaller */
    height: 420px;             /* ⬅ smaller */
    background: #2f8f5b;
    border-radius: 28px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);

    opacity: 0;
    transform: translateY(40px) scale(0.98);
    animation: loginFadeIn 0.8s ease-out forwards;
}

@keyframes loginFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-left {
    flex: 1;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transform: translateX(-40px);
    animation: slideLeft 0.7s ease-out forwards;
    animation-delay: 0.3s;
}

.login-right {
    flex: 1;
    padding: 40px;

    opacity: 0;
    transform: translateX(40px);
    animation: slideRight 0.7s ease-out forwards;
    animation-delay: 0.4s;
}

@keyframes slideLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* LEFT PANEL */
.login-left {
    width: 45%;
    background: #6fb291;

    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo {
    max-width: 200px;          /* ⬅ smaller logo */
}

/* RIGHT PANEL */
.login-right {
    width: 55%;
    background: #3a9a66;
    color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;   /* ⬅ vertical centering */

    padding: 40px;
}

/* Optional: keep title close to form */
.login-right h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* INPUTS (smaller + clean) */
.ui.input.big input {
    padding: 12px 14px !important; /* ⬅ smaller */
    font-size: 14px;
    border-radius: 10px !important;
}

/* BUTTON */
.login-btn {
    margin-top: 18px !important;
    padding: 14px !important;       /* ⬅ smaller */
    font-size: 15px !important;
    border-radius: 12px !important;

    transition: all 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Reduce form spacing */
.ui.form .field {
    margin-bottom: 14px;
}

.ui.input input:focus {
    border-color: #ffd54f !important;
}

/* Responsive */
@media (max-width: 900px) {
    .login-container {
        width: 90%;
        height: auto;
        flex-direction: column;
    }

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

    .login-left {
        padding: 30px;
    }

    .login-right {
        padding: 30px;
    }
}
