Login page CSS
CSS classes to target login page components.
Overview
With the login page CSS you can target the below components with full component coverage:
Login form section
Input fields and labels
Buttons and actions
Branding message and imagery
Notification containers
Briefly, this is how a branded login page looks like with Ubidots native CSS styling:

With the below CSS stylesheet, the login page can be changed into this:

Login Component Classes Reference
Class Hierarchy
The login page follows a strict hierarchical BEM structure with the root container login__viewport containing all sub-elements.
Classes by Section
Outer Container Classes
The parent class for the outer structure is login__viewport.
login__viewport- Root container for entire login pagelogin__notification-container- Container for notifications/alertslogin__wrapper- Main wrapper around login experiencelogin__background- Background layerlogin__background--app- App-specific background modifier
login__container- Main login container with border and shadow
Section Classes
The parent class for the sections is login__container.
login__section- Base section containerlogin__section--form- Form section (LEFT SIDE)login__section--image- Image/branding section (RIGHT SIDE)login__section--image-app- App-specific image section modifier
Logo & Branding
The parent class for the logo is login__section--form.
login__logo-link- Logo link wrapperlogin__logo-image- Logo image element
Title
The parent class for the title is login__section--form.
login__title- Main login heading
Form Wrapper
The parent class for the form is login__section--form.
login__form- Form wrapper element
Input Groups
The parent class for the input groups is login__form.
login__input-group-container- Container for all input groupslogin__input-group- Individual input group wrapperlogin__input-group--workspace- Workspace input group modifierlogin__label- Input label elementlogin__input- Input field elementlogin__input-wrapper- Wrapper for inputs with iconslogin__input-wrapper--icon- Modifier for icon wrapperlogin__input- Input field elementlogin__icon- Icon elementlogin__icon--eye- Eye icon modifier (password visibility toggle)
Forgot Password Link
The parent class for the forgot password link is login__form.
login__forgot-link- Forgot password link
Actions Container
The parent class for the actions container is login__form.
login__actions-container- Container for action buttonslogin__button- Login button elementlogin__button--loading- Loading state modifierlogin__button-text- Button text elementlogin__button-loader- Loading spinner element
Terms Container
The parent class for the terms container is login__form.
login__terms-container- Terms section containerlogin__terms-text- Terms text elementlogin__terms-link- Terms link element
Custom Message
The parent class for the custom message is login__section--image.
login__custom-message- Custom branding message (tagline/message on right panel)
CSS Properties Guide
Safe to Modif
color- Text colorsbackground- Background colors and gradientsborder- Border styles and colorsborder-radius- Corner roundingfont-family- Font choicesfont-size- Text sizesfont-weight- Text weightsbox-shadow- Shadow effectsfilter- Visual filters (grayscale, blur, etc.)backdrop-filter- Blur and glass morphism effectspadding- Internal spacingmargin- External spacingtransform- Translations, rotations, scalingtransition- Animation transitionsopacity- Transparencywidth- Element widthheight- Element height
Properties to Avoid
position: absolute- May break layout (use relative positioning instead)!important- Security restrictionbehavior- Security restrictionexpression- Security restrictionjavascript:- Security restrictiondata:text- Security restrictionvbscript:- Security restrictionfile:- Security restrictionftp:- Security restriction
Responsive Design Considerations
The login page is mobile-responsive by default. Key breakpoints:
Mobile (< 768px): Single column layout, full width form
Tablet (768px+): Split layout appears, form on left, branding on right
Desktop (72.5rem+): Full featured layout with max constraints
Keep these breakpoints in mind when customizing:
Font Customization
Import custom fonts and apply globally:
Transitions and Animations
Use CSS variables for consistent animation timing:
Last updated
Was this helpful?