For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 CSS stylesheet

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.

  1. login__viewport - Root container for entire login page

  2. login__notification-container - Container for notifications/alerts

  3. login__wrapper - Main wrapper around login experience

  4. login__background - Background layer

    1. login__background--app - App-specific background modifier

  5. login__container - Main login container with border and shadow


Section Classes

The parent class for the sections is login__container.

  1. login__section - Base section container

    1. login__section--form - Form section (LEFT SIDE)

    2. login__section--image - Image/branding section (RIGHT SIDE)

    3. login__section--image-app - App-specific image section modifier


Logo & Branding

The parent class for the logo is login__section--form.

  1. login__logo-link - Logo link wrapper

    1. login__logo-image - Logo image element


Title

The parent class for the title is login__section--form.

  1. login__title - Main login heading


Form Wrapper

The parent class for the form is login__section--form.

  1. login__form - Form wrapper element


Input Groups

The parent class for the input groups is login__form.

  1. login__input-group-container - Container for all input groups

    1. login__input-group - Individual input group wrapper

      1. login__input-group--workspace - Workspace input group modifier

      2. login__label - Input label element

      3. login__input - Input field element

      4. login__input-wrapper - Wrapper for inputs with icons

        1. login__input-wrapper--icon - Modifier for icon wrapper

        2. login__input - Input field element

        3. login__icon - Icon element

          1. login__icon--eye - Eye icon modifier (password visibility toggle)


The parent class for the forgot password link is login__form.

  1. login__forgot-link - Forgot password link


Actions Container

The parent class for the actions container is login__form.

  1. login__actions-container - Container for action buttons

    1. login__button - Login button element

      1. login__button--loading - Loading state modifier

      2. login__button-text - Button text element

      3. login__button-loader - Loading spinner element


Terms Container

The parent class for the terms container is login__form.

  1. login__terms-container - Terms section container

    1. login__terms-text - Terms text element

      1. login__terms-link - Terms link element


Custom Message

The parent class for the custom message is login__section--image.

  1. login__custom-message - Custom branding message (tagline/message on right panel)

CSS Properties Guide

Safe to Modif

  • color - Text colors

  • background - Background colors and gradients

  • border - Border styles and colors

  • border-radius - Corner rounding

  • font-family - Font choices

  • font-size - Text sizes

  • font-weight - Text weights

  • box-shadow - Shadow effects

  • filter - Visual filters (grayscale, blur, etc.)

  • backdrop-filter - Blur and glass morphism effects

  • padding - Internal spacing

  • margin - External spacing

  • transform - Translations, rotations, scaling

  • transition - Animation transitions

  • opacity - Transparency

  • width - Element width

  • height - Element height

Properties to Avoid

  • position: absolute - May break layout (use relative positioning instead)

  • !important - Security restriction

  • behavior - Security restriction

  • expression - Security restriction

  • javascript: - Security restriction

  • data:text - Security restriction

  • vbscript: - Security restriction

  • file: - Security restriction

  • ftp: - 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?