.cupello-login {
    margin: 0;
    min-height: 100vh;
    font-family: "Poppins", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 12% 14%, rgba(246, 111, 75, 0.22), transparent 40%),
        radial-gradient(circle at 88% 88%, rgba(26, 188, 156, 0.2), transparent 42%),
        linear-gradient(145deg, #fff7ef 0%, #f8fbff 52%, #f3f5ff 100%);
    color: #19202e;
}

.cupello-login>.container {
    width: 100%;
    max-width: 100%;
    padding: 24px 16px;
}

.cupello-login>.container>.row {
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
}

.pen-title,
.login-hero,
.btn_login_pin_table {
    width: 100%;
}

.cupello-login .row>.login-form-wrap {
    width: 100%;
    order: 1;
}

.btn_login_pin_table {
    order: 2;
}

.pen-title {
    order: 3;
}

.login-hero {
    order: 4;
}

.pen-title {
    margin: 0;
    text-align: center;
}

.pen-title img {
    max-width: 140px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12));
}

.login-hero {
    border-radius: 24px;
    background: linear-gradient(145deg, #101730 0%, #1d2b4d 55%, #213661 100%);
    color: #f4f7ff;
    padding: 20px;
    box-shadow: 0 24px 60px rgba(11, 22, 44, 0.28);
    position: relative;
    overflow: hidden;
}

.login-hero::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(72, 214, 255, 0.18);
    top: -70px;
    right: -40px;
}

.login-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 146, 109, 0.16);
    bottom: -110px;
    left: -80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #d8f2ff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.login-hero h2 {
    margin: 16px 0 10px;
    font-size: clamp(25px, 4vw, 36px);
    line-height: 1.16;
    color: #ffffff;
    font-weight: 700;
}

.login-hero p {
    margin: 0;
    color: rgba(235, 243, 255, 0.92);
    font-size: 15px;
    line-height: 1.6;
    max-width: 540px;
}

.hero-images {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    position: relative;
    z-index: 2;
}

.hero-image-card {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(2px);
    padding: 10px;
    text-align: center;
}

.hero-image-card img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: brightness(1.4);
}

.hero-image-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-bottom: 8px;
    font-size: 16px;
    color: #dff6ff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-image-card span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #f9fdff;
}

.btn_login_pin_table {
    margin: 2px 0 0;
    border-collapse: separate;
}

.btn_login_pin_table td {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn_login_pin_type {
    background: #ffffff;
    color: #344054;
    border: 1px solid #d7deef;
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
}

.btn_login_pin_type:hover,
.btn_login_pin_type:focus {
    text-decoration: none;
    color: #223050;
    border-color: #9db1f1;
    box-shadow: 0 8px 20px rgba(35, 57, 94, 0.12);
}

.btn_login_pin_type.active_login_btn {
    background: linear-gradient(135deg, #405be6, #2f80ed);
    color: #fff;
    border-color: transparent;
}

.cupello-login .row>.login-form-wrap {
    margin: 0;
    padding: 0;
}

.cupello-login .row>.login-form-wrap>.card:first-child,
.cupello-login .row>.login-form-wrap>.card.alt {
    display: none;
}

.cupello-login .row>.login-form-wrap>.card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(196, 210, 241, 0.62);
    border-radius: 22px;
    box-shadow: 0 22px 50px rgba(20, 31, 52, 0.14);
    padding: 28px 24px 22px;
}

.green_error,
.red_error {
    margin: 0 0 14px;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
}

.green_error {
    color: #0f7a4b;
    background: #ebfff5;
    border: 1px solid #a5ebc7;
}

.red_error {
    color: #b6293f;
    background: #fff1f4;
    border: 1px solid #ffc4d0;
}

.title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #15233d;
}

.login-subtitle {
    margin: 8px 0 20px;
    color: #56607a;
    font-size: 14px;
}

.input-container {
    position: relative;
    margin: 14px 0 4px;
}

.input-container input {
    width: 100%;
    background: #f8faff;
    border: 1px solid #dbe4fb;
    border-radius: 12px;
    padding: 14px 14px 13px;
    font-size: 14px;
    color: #1a2540;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input-container input:focus {
    background: #fff;
    border-color: #6b7ded;
    box-shadow: 0 0 0 4px rgba(107, 125, 237, 0.14);
}

.input-container label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #6c7899;
    margin: 0;
    pointer-events: none;
    transition: all 0.18s ease;
    background: transparent;
}

.input-container input:focus+label,
.input-container input:not(:placeholder-shown)+label,
.input-container input[value]:not([value=""])+label {
    top: 0;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 6px;
    left: 9px;
    font-size: 11px;
    color: #5066d9;
}

.input-container .bar {
    display: none;
}

.error_txt {
    color: #d72652;
    font-size: 12px;
    margin-top: 5px;
}

.button-container {
    margin-top: 16px;
}

.submit_login {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #3152f0, #2f80ed 55%, #22b4de);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 14px;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
    box-shadow: 0 14px 24px rgba(49, 82, 240, 0.28);
}

.submit_login:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(49, 82, 240, 0.34);
}

.footer,
.div_signup_link {
    margin-top: 14px;
    text-align: center;
}

.footer a,
.div_signup_link_a {
    color: #3a58d5;
    font-weight: 600;
}

#loginpin {
    margin: 10px auto 6px;
}

p.pull-right {
    margin-top: 10px;
    text-align: center;
    color: #64749d;
}

.btn_demo {
    margin: 6px 6px 0 0;
    border-radius: 10px;
    border: 0;
    padding: 6px 10px;
    font-size: 12px;
}

@media (max-width: 980px) {
    .cupello-login>.container>.row {
        gap: 14px;
    }

    .cupello-login .row>.login-form-wrap>.card {
        padding: 22px 18px;
    }
}

@media (max-width: 560px) {
    .cupello-login>.container {
        padding: 14px 10px;
    }

    .login-hero {
        border-radius: 18px;
        padding: 18px;
    }

    .hero-images {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .hero-image-card {
        padding: 8px 6px;
    }

    .hero-image-card img {
        width: 30px;
        height: 30px;
    }
}