html, body {
    min-height: 100%;
    overflow-x: hidden;
}
*, *::before, *::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    color: #2b2b2b;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 165, 90, 0.26), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255, 122, 69, 0.18), transparent 28%),
        linear-gradient(180deg, #fff8f2 0%, #fff 48%, #fff7f0 100%);
}

.login-page-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 14px;
}

.login-auth-card {
    width: min(1180px, 100%);
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(79, 45, 20, 0.14);
    overflow: hidden;
}

.login-auth-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1.03fr) minmax(360px, 0.97fr);
    min-height: 620px;
}

.login-brand-panel {
    position: relative;
    padding: 28px 34px 24px;
    color: #fff;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 22%),
        radial-gradient(circle at 84% 22%, rgba(255, 255, 255, 0.16), transparent 18%),
        linear-gradient(145deg, #ff8a2a 0%, #ff6a3d 54%, #ff4d2f 100%);
}

.login-brand-panel::before,
.login-brand-panel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    filter: blur(1px);
}

.login-brand-panel::before {
    width: 240px;
    height: 240px;
    right: -70px;
    top: 48px;
}

.login-brand-panel::after {
    width: 180px;
    height: 180px;
    left: -50px;
    bottom: -30px;
}

.brand-logo-wrap {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-logo-wrap img {
    max-width: 220px;
    max-height: 84px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.14));
}

.brand-copy {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    max-width: 430px;
}

.brand-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-copy h2 {
    margin: 14px 0 10px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.brand-copy p {
    margin: 0;
    max-width: 360px;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.brand-illustration {
    position: relative;
    z-index: 1;
    margin-top: 24px;
    min-height: 210px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08)),
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.35), transparent 30%),
        radial-gradient(circle at 72% 66%, rgba(255, 255, 255, 0.18), transparent 26%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.brand-illustration::before,
.brand-illustration::after {
    content: "";
    position: absolute;
    border-radius: 999px;
}

.brand-illustration::before {
    width: 210px;
    height: 210px;
    right: 18px;
    top: 24px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 14px rgba(255, 255, 255, 0.08);
}

.brand-illustration::after {
    width: 130px;
    height: 130px;
    left: 30px;
    bottom: 36px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.06);
}

.login-panel {
    padding: 24px 28px 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.9));
}

.login-panel-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 24px 28px 20px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 18px 50px rgba(78, 44, 19, 0.08);
}

.pen-title {
    padding: 0;
    text-align: center;
    margin-bottom: 18px;
}

.pen-title img {
    max-width: 170px;
    max-height: 58px;
    object-fit: contain;
}

.auth-heading {
    text-align: center;
    margin: 10px 0 18px;
}

.auth-heading h1 {
    margin: 0;
    color: #1e1e1e;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-heading p {
    margin: 6px 0 0;
    color: #7a6f67;
    font-size: 14px;
    line-height: 1.6;
}

.status-message {
    margin: 0 0 16px;
    padding: 11px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.red_error {
    background: #fff1ef;
    color: #d64545;
    text-align: left;
}

.green_error {
    background: #eefbf2;
    color: #1f7a3f;
    text-align: left;
}

.login-form-group {
    margin-bottom: 12px;
}

.input-container {
    position: relative;
}

.input-container input {
    width: 100%;
    height: 50px;
    border: 1px solid #eaded5;
    border-radius: 18px;
    padding: 0 18px;
    background: #fff;
    color: #2a2623;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    outline: none;
}

.input-container input::placeholder {
    color: #a89a91;
}

.input-container input:focus {
    border-color: #ff8a2a;
    box-shadow: 0 0 0 4px rgba(255, 138, 42, 0.16);
}

.input-container label {
    display: block;
    margin: 0 0 6px;
    color: #4c4038;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.bar {
    display: none;
}

.error_txt {
    margin-top: 8px;
    color: #c73b36;
    font-size: 13px;
}

.button-container {
    margin-top: 16px;
}

.submit_login {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff8a2a 0%, #ff6237 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 16px 28px rgba(255, 102, 51, 0.28);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.submit_login:hover,
.submit_login:focus {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 20px 34px rgba(255, 102, 51, 0.32);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 16px 0 12px;
    color: #a59890;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(180, 162, 151, 0.75), transparent);
}

.pin-section-title {
    margin: 0 0 10px;
    text-align: center;
    color: #2a2623;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.pin-wrap {
    display: flex;
    justify-content: center;
}

#loginpin {
    min-height: 54px;
    max-width: 100%;
}

.pin-login {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
}

.pin-login input {
    width: 56px !important;
    height: 56px !important;
    margin: 0 !important;
    border-radius: 16px !important;
    border: 1px solid #eaded5 !important;
    background: #fff !important;
    color: #2b1f18 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 24px rgba(92, 55, 27, 0.06);
}

.pin-login input:focus {
    border-color: #ff8a2a !important;
    box-shadow: 0 0 0 4px rgba(255, 138, 42, 0.16) !important;
}

.footer {
    margin-top: 12px;
    text-align: center;
}

.footer a {
    color: #ff6a3d;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.footer a:hover,
.footer a:focus {
    text-decoration: underline;
}

.version-text {
    margin-top: 12px;
    text-align: center;
    color: #99887e;
    font-size: 13px;
    font-weight: 600;
}

.display_none_login {
    display: none;
}

.btn_login_pin_table,
.btn_login_pin_type,
.login_title,
.div_signup_link,
.div_signup_link_a,
.custom_shadow,
.btn_demo,
.cta-demo-link,
.cta-default-whatsapp,
.card,
.card.alt,
.toggle,
.close {
    display: none !important;
}

@media (max-width: 1024px) {
    .login-auth-grid {
        grid-template-columns: 1fr;
    }
    .login-brand-panel {
        min-height: 250px;
    }
    .login-panel {
        padding-top: 0;
    }
    .auth-card {
        margin-top: -54px;
        position: relative;
        z-index: 2;
    }
}

@media (max-width: 768px) {
    .login-page-shell {
        padding: 0;
    }
    .login-auth-card {
        border-radius: 0;
        min-height: 100vh;
    }
    .login-auth-grid {
        display: block;
    }
    .login-brand-panel,
    .login-panel {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
    .brand-illustration {
        min-height: 150px;
    }
    .auth-card {
        max-width: 100%;
        padding: 20px 16px 18px;
        margin-top: -44px;
    }
    .pin-login input {
        width: 48px !important;
        height: 48px !important;
        margin: 0 5px !important;
    }
}

@media (max-width: 480px) {
    .brand-copy h2 {
        font-size: 20px;
        line-height: 1.08;
        max-width: 270px;
    }
    .brand-copy p {
        font-size: 14px;
        max-width: 280px;
    }
    .auth-heading h1 {
        font-size: 20px;
    }
    .input-container input,
    .submit_login {
        height: 52px;
        border-radius: 16px;
    }
    .pin-login input {
        width: 42px !important;
        height: 42px !important;
        border-radius: 14px !important;
        font-size: 18px !important;
    }
}
