:root {
    --green: #246946;
    --green-dark: #145437;
    --light-panel: #F0F6FA;
    --white: #ffffff;
    --orange: #ff7a45;
    --font-main: 'Roboto', sans-serif;
    --size-title: 20px;
    --size-subtitle: 16px;
    --size-body: 14px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-main);
    font-size: var(--size-body);
    background: #fff;
}

.app-shell {
    min-height: 100vh;
}

.left-panel {
    background: var(--green);
    color: var(--white);
    padding: 34px 70px;
}

.left-inner {
    max-width: 390px;
}

.logo-img {
    max-width: 170px;
    width: auto;
    object-fit: contain;
}

.welcome {
    margin-bottom: 35px;
}

.welcome h1 {
    font-family: var(--font-main);
    font-size: var(--size-title);
    font-weight: 700;
    margin: 30px 0 5px;
}

.welcome p {
    font-size: var(--size-body);
    opacity: 0.8;
}

.input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f2f4f3;
    border-radius: 8px;
    padding: 10px 15px 10px 15px;
}

.input-wrap i {
    color: #7d8883;
    font-size: 18px;
}

.input-wrap input {
    border: 0;
    outline: 0;
    width: 100%;
    background: transparent;
    font-size: var(--size-body);
    color: #2f3d37;
    letter-spacing: 0.9px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--size-subtitle);
}

.remember input {
    width: 15px;
    height: 15px;
    accent-color: #ffffff;
}

.btn-login {
    height: 45px;
    border: 0;
    border-radius: 8px;
    background: #f1f3f2;
    color: var(--green-dark);
    font-size: var(--size-body);
    font-weight: 700;
    font-family: var(--font-main);
    transition: all 0.2s;
}
.btn-login:hover{
    background-color: #e0e0e0;
}

.forgot {
    color: #7fc2f7;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
.forgot:hover{
    text-decoration: underline;
}
.login-third-party {
    grid-template-columns: 1fr 1fr;
}

.social-btn {
    border: 0;
    height: 42px;
    border-radius: 8px;
    background: #f1f3f2;
    color: #24312c;
    font-size: var(--size-body);
    font-weight: 700;
    transition: all 0.2s;
}
.social-btn:hover{
    background-color: #e0e0e0;
}

.social-btn i {
    margin-right: 6px;
}

.social-btn .fb {
    color: #1f5fd0;
}

.social-btn .gg {
    color: #e54a37;
}

.signup {
    font-size: var(--size-subtitle);
}

.signup a {
    color: #ffbf2f;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}
.signup a:hover{
    color: #ff7a45;
}
.right-panel {
    background: #fff;
    display: grid;
    grid-template-rows: auto 1fr;
}

.right-top {
    padding: 36px 20px 28px;
}

@media (min-width: 992px) {
    body {
        overflow: hidden;
    }

    .app-shell,
    .app-shell > .row {
        height: 100vh;
        min-height: 100vh;
    }

    .left-panel {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;
    }

    .right-panel {
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        align-content: start;
    }

    .right-panel::-webkit-scrollbar {
        width: 8px;
    }

    .right-panel::-webkit-scrollbar-thumb {
        background: rgba(36, 105, 70, 0.28);
        border-radius: 999px;
    }
}


.green-sub {
    color: var(--green);
    opacity: 0.95;
    font-size: 24px;
}

.feature-box {
    margin-top: 15px;
    background: var(--light-panel);
    padding: 40px;
    height: 90%;
}

.feature-title {
    text-align: center;
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--green);
    font-size: var(--size-title);
    margin-bottom: 50px;
}

.feature-title span {
    color: var(--orange);
}

.feature-item {
    background: var(--green);
    color: var(--white);
    border-radius: 12px;
    min-height: 65px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    text-decoration: none;
    transition: all 0.3s;
}
.feature-item:hover{
    transform: translateY(-5px);
    background-color: var(--green-dark);
}

.feature-item i {
    font-size: 30px;
    width: 34px;
    text-align: center;
}

.feature-item p {
    margin: 0;
    font-family: var(--font-main);
    font-size: var(--size-subtitle);
    font-weight: 800;
    line-height: 1.2;
}

/* ─── Field error ─── */
.field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: -12px;    
    margin-bottom: 12px;  
    padding: 6px 11px;
    border-radius: 0 6px 6px 0;
    color: #ffb3b3;          
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    animation: errorFadeIn 0.35s ease both; 
}

.field-error::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    flex-shrink: 0;
    color: #ffb3b3;
}

@keyframes errorFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}


@media (max-width: 1199.98px) {
    .left-panel {
        padding: 30px 36px;
    }

    .left-inner {
        max-width: 420px;
    }

    .logo-img {
        max-width: 150px;
    }

    .feature-box {
        padding: 30px 24px;
    }

    .feature-title {
        margin-bottom: 30px;
    }
}

@media (max-width: 1399.98px) {

    .welcome h1 {
        font-size: var(--size-title);
    }

    .welcome p {
        font-size: var(--size-body);
        opacity: 0.8;
    }

    .btn-login {
        font-size: var(--size-body);
    }

    .feature-title {
        font-size: var(--size-title);
    }

    .feature-item p {
        font-size: var(--size-subtitle);
    }
}

@media (max-width: 991.98px) {
    body {
        overflow: auto;
    }

    .app-shell,
    .app-shell > .row,
    .left-panel,
    .right-panel {
        height: auto;
        min-height: auto;
    }

    .right-panel {
        display: none;
        overflow: visible;
    }

    .left-panel {
        position: static;
        width: 100% !important;
        min-height: 100vh;
        padding: 32px 24px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .left-inner {
        max-width: 560px;
        margin: 0 auto;
    }

    .right-top {
        padding: 26px 14px 18px;
    }

    .feature-box {
        margin: 0;
        padding: 24px 16px 28px;
        height: auto;
    }

    .feature-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .feature-item {
        min-height: 68px;
    }

    .feature-item i {
        font-size: 24px;
        width: 28px;
    }

    .feature-item p {
        font-size: var(--size-subtitle);
    }
}

@media (max-width: 767.98px) {
    .left-panel {
        padding: 28px 16px;
    }

    .logo-img {
        max-width: 140px;
    }

    .welcome {
        margin-bottom: 26px;
    }

    .welcome h1 {
        margin-top: 22px;
        font-size: 28px;
    }

    .welcome p {
        font-size: 16px;
    }

    .input-wrap {
        padding: 12px 14px;
    }

    .input-wrap input {
        font-size: 15px;
        letter-spacing: 0;
    }

    .btn-login {
        height: 48px;
        font-size: 16px;
    }

    .login-third-party {
        grid-template-columns: 1fr;
    }

    .social-btn {
        height: 44px;
    }

    .signup {
        line-height: 1.5;
    }

    .right-top {
        padding: 24px 12px 16px;
    }

    .feature-box {
        padding: 20px 12px 24px;
        border-radius: 0;
    }

    .feature-title {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 18px;
    }

    .feature-item {
        min-height: 64px;
        padding: 12px 14px;
        align-items: flex-start;
    }

    .feature-item p {
        font-size: var(--size-subtitle);
    }
}

@media (max-width: 575.98px) {
    .left-panel {
        padding: 24px 14px;
    }

    .left-inner {
        max-width: 100%;
    }

    .logo-img {
        max-width: 124px;
    }

    .welcome h1 {
        font-size: 24px;
    }

    .welcome p,
    .remember,
    .signup {
        font-size: var(--size-body);
    }

    .input-wrap i {
        font-size: 16px;
    }

    .input-wrap input,
    .social-btn,
    .btn-login {
        font-size: var(--size-body);
    }

    .forgot {
        font-size: 12px;
    }

    .feature-title {
        font-size: 18px;
    }

    .feature-item {
        min-height: 60px;
        gap: 10px;
    }

    .feature-item i {
        font-size: 20px;
        width: 22px;
    }

    .feature-item p {
        font-size: 12px;
        line-height: 1.35;
    }
}