:root {
    --remade-dark: #403f2b;
    --remade-green: #2e571a;
    --remade-green-dark: #244714;
    --remade-cream: #fefaf0;
    --remade-soft: #ddddcc;
    --remade-white: #ffffff;
}

* {
    box-sizing: border-box;
}

body.login-page {
    margin: 0;
    min-height: 100vh;
    background: var(--remade-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1080px;
    min-height: 560px;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
    background: var(--remade-cream);
}

.branding-side {
    background: linear-gradient(135deg, var(--remade-dark) 0%, var(--remade-green) 100%);
    color: var(--remade-cream);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.branding-side::after {
    content: "";
    position: absolute;
    right: -100px;
    bottom: -120px;
    width: 380px;
    height: 380px;
    background: rgba(254, 250, 240, 0.08);
    border-radius: 50%;
}

.brand-logo {
    width: 260px;
    max-width: 78%;
    height: auto;
    display: block;
    margin-bottom: 34px;
    position: relative;
    z-index: 2;
}

.brand-message {
    position: relative;
    z-index: 2;
    max-width: 460px;
}

.brand-message h1 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 16px;
    color: var(--remade-cream);
}

.brand-message p {
    font-size: 1.08rem;
    line-height: 1.55;
    margin-bottom: 0;
    color: rgba(254, 250, 240, 0.88);
}

.brand-footer {
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
    color: rgba(254, 250, 240, 0.82);
}

.login-side {
    background: var(--remade-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 42px;
}

.login-box {
    width: 100%;
    max-width: 420px;
}

.login-heading {
    text-align: center;
    margin-bottom: 24px;
}

.login-heading h2 {
    color: var(--remade-dark);
    font-weight: 800;
    margin-bottom: 6px;
}

.login-heading p {
    color: #6b6b5b;
    margin-bottom: 0;
}

.login-card {
    border-radius: 20px;
    border: 1px solid var(--remade-soft);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10);
    background: var(--remade-white);
}

.login-card .card-body {
    padding: 30px;
}

.form-label {
    color: var(--remade-dark);
    font-weight: 600;
}

.form-control {
    min-height: 48px;
    border-radius: 12px;
}

.password-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.password-row .form-control {
    flex: 1;
}

.btn-show-password {
    width: 76px;
    border-radius: 12px;
    border: 1px solid #d8decd;
    background: var(--remade-cream);
    color: var(--remade-dark);
    font-weight: 600;
}

.btn-show-password:hover {
    background: #eee7d7;
}

.btn-remade-login {
    min-height: 48px;
    border-radius: 12px;
    background: var(--remade-green);
    border-color: var(--remade-green);
    color: var(--remade-cream);
    font-weight: 700;
}

.btn-remade-login:hover,
.btn-remade-login:focus,
.btn-remade-login:active {
    background: var(--remade-dark) !important;
    border-color: var(--remade-dark) !important;
    color: var(--remade-cream) !important;
}

.form-control:focus {
    border-color: var(--remade-green);
    box-shadow: 0 0 0 .25rem rgba(46, 87, 26, .15);
}

.portal-note {
    margin-top: 18px;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    line-height: 1.4;
}

.alert {
    border-radius: 12px;
}

@media (max-width: 991.98px) {
    body.login-page {
        align-items: flex-start;
        padding: 18px;
    }

    .login-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .branding-side {
        min-height: 270px;
        padding: 32px 26px;
        justify-content: center;
        text-align: center;
    }

    .brand-logo {
        margin: 0 auto 18px;
        max-width: 220px;
        width: 60%;
    }

    .brand-message {
        margin: 0 auto;
    }

    .brand-message h1 {
        font-size: 1.7rem;
    }

    .brand-message p {
        font-size: 0.98rem;
    }

    .brand-footer {
        display: none;
    }

    .login-side {
        padding: 34px 24px;
    }
}

@media (max-width: 575.98px) {
    body.login-page {
        padding: 0;
        background: var(--remade-cream);
    }

    .login-container {
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
    }

    .branding-side {
        min-height: 180px;
        padding: 24px 18px;
    }

    .brand-logo {
        max-width: 170px;
        margin-bottom: 10px;
    }

    .brand-message h1 {
        font-size: 1.25rem;
        margin-bottom: 6px;
    }

    .brand-message p {
        font-size: 0.9rem;
    }

    .login-side {
        align-items: flex-start;
        padding: 26px 16px 34px;
    }

    .login-heading {
        margin-bottom: 18px;
    }

    .login-card .card-body {
        padding: 22px 18px;
    }

    .password-row {
        gap: 8px;
    }

    .btn-show-password {
        width: 68px;
    }
}