/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #009d63 0%, #047857 50%, #10b981 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* Container */
.login-container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    max-height: 600px;
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Left Side - Form */
.login-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
    background: #ffffff;
}

.login-form-wrapper {
    width: 100%;
    max-width: 380px;
}

.login-logo {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo h1 {
    font-size: 38px;
    font-weight: 700;
    color: #009d63;
    margin-bottom: 6px;
    letter-spacing: -1px;
}

.login-logo p {
    color: #6c757d;
    font-size: 14px;
}

.login-form h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.login-form .subtitle {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 30px;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-control-custom {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    outline: none;
    border-color: #009d63;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 157, 99, 0.1);
}

/* Button */
.btn-login {
    width: 100%;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #009d63 0%, #047857 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 157, 99, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

/* Alert */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 14px;
}

.alert-danger {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

/* Register */
.register-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.register-link p {
    color: #6c757d;
    font-size: 13px;
}

.register-link a {
    color: #009d63;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    color: #047857;
    text-decoration: underline;
}

/* Right Side - Image */
.login-image-section {
    flex: 1;
    background: linear-gradient(135deg, #009d63 0%, #047857 50%, #10b981 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.illustration-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-image {
    width: 90%;
    max-width: 400px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* =======================
   Responsive
======================= */

/* Tablet */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
        max-height: none;
    }

    .login-image-section {
        display: none;
    }

    .login-form-section {
        padding: 40px 30px;
    }

    .login-logo h1 {
        font-size: 34px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    body {
        padding: 15px;
    }

    .login-container {
        border-radius: 20px;
    }

    .login-form-section {
        padding: 30px 25px;
    }

    .login-logo h1 {
        font-size: 30px;
    }

    .login-form h3 {
        font-size: 22px;
    }
}
