﻿body {
    background-color: #DADADA;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    position: relative;
}

    body > .grid {
        height: 100%;
    }

/* A Fomantic .ui.grid carries -1rem side margins for its gutters, meant to be
   absorbed by a .ui.container. The account pages put the grid straight in <body>,
   so those margins overflowed the page by ~14px at every width (measured live on
   /account/login at 390px and 1440px). Neutralise the horizontal pair only, and
   match .ui.grid's specificity so the shorthand does not win. */
body > .ui.grid {
    margin-left: 0;
    margin-right: 0;
}

.column {
    max-width: 450px;
}

.ui.form .ui.segment:first-child {
    border-bottom: 0;
}

.ui.form .ui.segment:last-child {
    padding: 0.5rem 1.2rem 2rem 1.6rem;
}

h1 {
    margin-bottom: 1.5rem !important;
    font-size: 2em !important
}

#button-submit {
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important;
}

/* Create account: password rules shown above the field before the user types */
.password-requirements {
    margin-bottom: 0.4em;
    font-size: 0.9em;
    color: rgba(0, 0, 0, 0.6);
}

#create-field {
    text-align: center;
}

/* 2FA and recovery-code steps: a Fomantic grid's -1rem bottom margin put the icon right on the field below it */
.ui.grid.auth-code-icon {
    margin-bottom: 0;
}

img {
    margin-bottom: 1.8rem;
}