:root {
    --gf-pink: #ec258a;
    --gf-green: #9acd33;
    --gf-text: #2d2d2d;
    --gf-muted: #7a7a7a;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fff url("../img/fondo_login.a1d2ad9dbf1d.png") center/cover no-repeat;
}

main.container {
    max-width: 100% !important;
    padding: 0;
}

.container-count {
    position: relative;
    min-height: 100vh;
    padding: 24px 14px 16px;
}

.container-count::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 246, 251, 0.82) 50%, rgba(246, 255, 241, 0.82) 100%);
    z-index: 0;
}

.container-count > .row {
    position: relative;
    z-index: 1;
}

#codigo-user,
#agregardatos {
    padding: 30px 24px !important;
    border-radius: 26px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.76) !important;
    box-shadow: 0 10px 36px rgba(232, 37, 138, 0.15), 0 2px 10px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.container-count .row {
    width: 100%;
    margin: 0;
}

#codigo-user .h5,
#agregardatos .h5 {
    font-weight: 900;
    color: var(--gf-text);
    margin-bottom: 18px !important;
}

#codigo-user .form-label,
#agregardatos .form-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--gf-muted);
    margin-bottom: 7px;
}

#codigo-user .form-control,
#agregardatos .form-control {
    height: 48px;
    border-radius: 14px;
    border: 2px solid rgba(236, 37, 138, 0.12);
    background: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 700;
    color: var(--gf-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 10px 12px;
}

#codigo-user .form-control:focus,
#agregardatos .form-control:focus {
    border-color: var(--gf-pink);
    box-shadow: 0 0 0 4px rgba(236, 37, 138, 0.12), 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-success {
    background: linear-gradient(135deg, #ff4fa0 0%, var(--gf-pink) 100%);
    border: 0;
    border-radius: 14px;
    height: 46px;
    font-weight: 900;
    letter-spacing: 0.4px;
    box-shadow: 0 8px 22px rgba(236, 37, 138, 0.3);
}

.btn-success:hover,
.btn-success:focus {
    background: linear-gradient(135deg, var(--gf-green), #7bbf28);
    box-shadow: 0 12px 24px rgba(154, 205, 51, 0.35);
}

#codigo-user .g-recaptcha {
    display: inline-block;
    transform-origin: center top;
}

@media (min-width: 768px) {
    #codigo-user,
    #agregardatos {
        padding: 34px 28px !important;
    }
}

@media (max-width: 576px) {
    .container-count {
        padding: 14px 10px;
    }

    #codigo-user,
    #agregardatos {
        padding: 22px 14px !important;
        border-radius: 20px !important;
    }

    #codigo-user .h5,
    #agregardatos .h5 {
        font-size: 1.1rem;
    }

    #codigo-user .g-recaptcha {
        transform: scale(0.92);
    }
}

@media (max-width: 430px) {
    #codigo-user,
    #agregardatos {
        padding: 18px 10px !important;
        border-radius: 16px !important;
    }

    #codigo-user .form-label,
    #agregardatos .form-label {
        font-size: 11px;
    }

    #codigo-user .form-control,
    #agregardatos .form-control {
        height: 44px;
        font-size: 14px;
    }

    #codigo-user .g-recaptcha {
        transform: scale(0.84);
    }
}

@media (max-width: 380px) {
    #codigo-user .g-recaptcha {
        transform: scale(0.76);
    }
}

@media (max-height: 760px) {
    .container-count {
        align-items: flex-start !important;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}
