:root {
    --primary: #98FB98;
    --primary-dark: #32b768;
    --primary-soft: #eaffea;
    --text-dark: #102018;
    --text-muted: #6b7a70;
    --white: #ffffff;
    --border: #dce9df;
    --shadow: 0 24px 70px rgba(16, 32, 24, .16);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at top left, rgba(152, 251, 152, .35), transparent 35%), linear-gradient(135deg, #f4fff4 0%, #eef7f0 50%, #ffffff 100%);
    color: var(--text-dark);
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
}

.login-card {
    width: 100%;
    max-width: 1080px;
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,.75);
}

/* LEFT PANEL */
.panel-brand {
    position: relative;
    padding: 52px 46px;
    background: linear-gradient(145deg, rgba(14, 78, 45, .92), rgba(34, 150, 86, .9)), linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-deco {
    position: absolute;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    filter: blur(.2px);
}

.brand-deco-1 {
    width: 240px;
    height: 240px;
    top: -80px;
    right: -80px;
}

.brand-deco-2 {
    width: 160px;
    height: 160px;
    bottom: 90px;
    left: -60px;
}

.brand-deco-3 {
    width: 95px;
    height: 95px;
    right: 70px;
    bottom: 80px;
}

.brand-content {
    position: relative;
    z-index: 2;
}

.logo-wrap {
    width: 104px;
    height: 104px;
    background: rgba(255,255,255,.96);
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
    margin-bottom: 28px;
}

.brand-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.brand-title {
    font-size: 2.15rem;
    font-weight: 700;
    line-height: 1.18;
    margin-bottom: 16px;
}

.brand-badge {
    display: inline-flex;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.28);
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 34px;
}

.brand-features {
    display: grid;
    gap: 16px;
    max-width: 360px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(8px);
}

    .feature-item i {
        width: 38px;
        height: 38px;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,.22);
        font-size: 1.1rem;
    }

.brand-footer {
    position: relative;
    z-index: 2;
    margin: auto 0 0;
    font-size: .82rem;
    opacity: .78;
}

/* RIGHT PANEL */
.panel-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 54px 48px;
    background: #fff;
}

.form-panel-inner {
    width: 100%;
    max-width: 420px;
}

.form-header {
    margin-bottom: 34px;
}

.form-greeting {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-instruction {
    color: var(--text-muted);
    margin: 0;
    font-size: .96rem;
}

.form-label {
    font-weight: 600;
    font-size: .9rem;
    color: #22352a;
    margin-bottom: 8px;
}

.input-icon-container {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-dark);
    font-size: 1.05rem;
    z-index: 2;
}

.icon-input,
.form-control {
    min-height: 52px;
    border-radius: 15px;
    border: 1px solid var(--border);
    background: #fbfffb;
    padding-left: 46px;
    font-size: .95rem;
    transition: all .22s ease;
}

    .form-control:focus {
        border-color: var(--primary-dark);
        box-shadow: 0 0 0 .25rem rgba(152, 251, 152, .35);
        background: #fff;
    }

.btn-signin {
    min-height: 54px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-dark), #1e8f50);
    color: #fff;
    font-weight: 700;
    letter-spacing: .2px;
    box-shadow: 0 14px 30px rgba(50, 183, 104, .32);
    transition: all .25s ease;
}

    .btn-signin:hover {
        transform: translateY(-2px);
        color: #fff;
        box-shadow: 0 18px 38px rgba(50, 183, 104, .42);
    }

    .btn-signin:disabled {
        opacity: .78;
        transform: none;
    }

.btn-spinner {
    display: none;
    width: 17px;
    height: 17px;
    margin-right: 8px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: middle;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.alert {
    border-radius: 15px;
    border: none;
    font-size: .9rem;
}

.alert-success {
    background: #e9fbe9;
    color: #18713d;
}

.alert-danger {
    background: #fff1f1;
    color: #b3261e;
}

.text-danger {
    color: #c0392b !important;
}

.form-footer-text {
    text-align: center;
    margin-top: 26px;
    color: var(--text-muted);
    font-size: .86rem;
}

.footer-link {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
}

    .footer-link:hover {
        text-decoration: underline;
    }

/* MODAL */
.modal-content {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-dark), #1f8e51);
    color: #fff;
    border: none;
}

.modal-title {
    font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .login-card {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .panel-brand {
        min-height: 360px;
        padding: 42px 34px;
    }

    .brand-title {
        font-size: 1.75rem;
    }

    .brand-features {
        display: none;
    }

    .brand-footer {
        margin-top: 28px;
    }

    .panel-form {
        padding: 42px 28px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 18px 10px;
    }

    .login-card {
        border-radius: 22px;
    }

    .panel-brand,
    .panel-form {
        padding: 32px 22px;
    }

    .form-greeting {
        font-size: 1.65rem;
    }

    .logo-wrap {
        width: 84px;
        height: 84px;
        border-radius: 22px;
    }

    .brand-logo {
        width: 62px;
        height: 62px;
    }
}
