# Style the login pages

> Replacing the text of the provider chooser in Oktul eID SSO and adding your logo and CSS to it and to the error pages, with the class names to style.
>
> Documentation for Oktul eID SSO for Jira, for Jira Cloud, by Oktul: https://oktul.com/docs/plugins/eid-sso/login-page/

The app shows a person two kinds of page of its own: the **provider chooser**, when more than one
provider is used for login, and an **error page** when a login is refused. The **Login page** tab
gives them your text, your logo and your CSS.

A message at the top of the tab says whether users see the chooser now. With one provider in use
they do not, and your logo and CSS then show on the error pages only.

Every field is optional, and an empty field keeps the built-in text or look.

## The built-in look

A centred card on a plain ground, in the system's own typeface, with one full-width button per
provider. It has light and dark colours, following the device, and fits a phone 360 pixels wide.

## Chooser heading and text

One editor holds the heading and the text above the provider buttons. What you write replaces the
built-in heading and intro as a whole. Write it in every language your users need, as the
built-in ones are in Estonian and English.

- **Allowed**: paragraphs, headings, bulleted and numbered lists, quotes, bold, italic,
  underline, strikethrough, inline code, subscript, superscript and links.
- **Use Heading 1 for the page title.** Without one, the built-in title stays, for screen
  readers only.
- **Links** must start with `https://` or `mailto:`. They open in a new tab.
- **At most 2,000 characters.**

The error pages keep their built-in text. See
[messages a user can see](../logging-in/#messages-a-user-can-see).

## Logo

A PNG, JPEG, SVG or WebP image of at most 50 KB, pasted as a data URI: `data:image/png;base64,`
followed by the file in base64. It shows above the heading of the chooser and the error pages.

## Custom CSS

Your CSS is added after the built-in style, and may be at most 10 KB.

| Class | Element |
|---|---|
| `.card` | The box around each page |
| `.logo` | Your logo, above the heading |
| `.intro` | The chooser's built-in intro |
| `.chooser-text` | Your chooser text, in place of the heading and intro |
| `.provider-list` | The list of providers |
| `.provider-button` | A provider's button |
| `.last-used` | The *last used* mark |
| `.message` | An error page's text |
| `.back-link` | The link back to Atlassian's login |

The heading is the page's `h1`. Colours are CSS variables on `:root`, with their own values for
dark mode: `--bg`, `--card`, `--text`, `--muted`, `--border`, `--accent`, `--accent-hover`,
`--accent-text`, `--focus` and `--radius`.

```css
:root { --accent: #6a1b9a; }
```

<Aside type="note" title="What the CSS cannot do">
The pages load nothing from elsewhere. Not allowed in the CSS: `<`, `@import`, `@font-face`,
`image-set()`, `src()`, a backslash, and `url()` with anything but a `data:` URI. Your CSS can
restyle the page. It cannot load a font or picture from another host, or send anything out. The
card says why a save was refused.
</Aside>

## Save, check and reset

- **Save login page** checks every field and stores them.
- **There is no preview.** After saving, check the result with a test login on a phone and on a
  computer.
- **Clear all fields**, then save, goes back to the built-in look.

## What is never styled

The pages that carry a login between Atlassian and the provider show nothing and take no logo or
CSS. Neither does the provider's own page: its look belongs to the provider.

## Related

- [What a user sees](../logging-in/)
- [Login providers](../providers/#several-providers)

---

A problem or a question? Write to [support@oktul.com](mailto:support@oktul.com) or open a request in the [Help Center](https://support.oktul.com).
