body, html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: table;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 0 0;
}

body {
    display: table-cell;
    vertical-align: middle;
}

.frontpage-form {
    display: table;
    margin: auto;
    padding: 40px 40px 40px 40px;
    text-align: center;
    width: 30%;
    min-width: 280px;
    max-width: 400px;
    background: #F3F3F3;
}

.frontpage-input {
    box-sizing: border-box;
    border: 1px solid lightgrey;
    background-image: none;
    background: transparent;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    padding: 10px 10px 10px 10px;
    width: 100%;
    border-radius: 0.30em;
}

.frontpage-btn {
    width: 100%;
    border: none;
    height: 2.5em;
    line-height: 2.5;
    cursor: pointer;
    margin-top: 15px;
    margin-bottom: 10px;
    padding: 0 1em;
    font-size: 18px;
    letter-spacing: 0.02rem;
    text-decoration: none;
}

.frontpage-forgotpasswordlink {
    float: right;
    font-size: 12px;
    text-decoration: none;
}

/* Have to overwrite bracket.css */
.frontpage-forgotpasswordlink:focus {
    outline: auto 2px Highlight !important;
    outline-offset: 2px !important;
}

.frontpage-forgotpasswordlink:hover { text-decoration: underline; }

.frontpage-logo {
    width: 100%;
    margin-bottom: 25px;
    max-height: 150px;
}

.frontpage-msg {
    padding: 1px 15px;
    line-height: 1.25em;
    font-size: 14px;
    margin-bottom: 10px;
}

.frontpage-alert .alert button {
    display: none !important;
}

.frontpage-alert .alert {
    background: #faebeb !important;
    border: 1px solid #f5d7d7 !important;
    color: #721c24 !important;
}

.frontpage-success .alert {
    background: #e6f5e9 !important;
    border: 1px solid #d4edda !important;
    color: #155724 !important;
}

.frontpage-helptext {
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 25px;
    line-height: 1.25em;
    text-align: left;
}

.frontpage-divider {
    height: 2px;
    background: #333;
    margin-bottom: 25px;
}

/* Microsoft Sign-in Button - Dark Theme following Microsoft branding guidelines */
.frontpage-microsoft-btn {
    width: 100%;
    border: 1px solid #2f2f2f;
    height: 2.5em;
    line-height: 2.5;
    cursor: pointer;
    margin-top: 15px;
    margin-bottom: 0;
    padding: 0 1em;
    font-size: 18px;
    letter-spacing: 0.02rem;
    text-decoration: none;
    background-color: #2f2f2f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.frontpage-microsoft-btn:hover {
    background-color: #404040;
    color: #ffffff;
    text-decoration: none;
}

.frontpage-microsoft-btn:focus {
    outline: 2px solid #0078d4;
    outline-offset: 2px;
}

.frontpage-microsoft-btn:active {
    background-color: #1a1a1a;
    color: #ffffff;
}

.frontpage-microsoft-logo {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    display: inline-block;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjEwLjA4IiBoZWlnaHQ9IjEwLjA4IiBmaWxsPSIjRjI1MDIyIi8+CjxyZWN0IHg9IjEwLjkyIiB3aWR0aD0iMTAuMDgiIGhlaWdodD0iMTAuMDgiIGZpbGw9IiM3RkJBMDAiLz4KPHJlY3QgeT0iMTAuOTIiIHdpZHRoPSIxMC4wOCIgaGVpZ2h0PSIxMC4wOCIgZmlsbD0iIzAwQTRGRiIvPgo8cmVjdCB4PSIxMC45MiIgeT0iMTAuOTIiIHdpZHRoPSIxMC4wOCIgaGVpZ2h0PSIxMC4wOCIgZmlsbD0iI0ZGQjkwMCIvPgo8L3N2Zz4K");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.frontpage-auth-divider {
    margin: 15px 0;
    text-align: center;
    position: relative;
    color: #8c8c8c;
    font-size: 14px;
}

.frontpage-auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #d1d1d1;
    z-index: 1;
}

.frontpage-auth-divider span {
    background: #f3f3f3;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}
