﻿/* Global Styles */

*, *:focus, *:hover{
    outline:none;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

p {
    line-height: 24px;
}

.centered {
    text-align: center;
}

.skip-to-content a {
    position: absolute;
    margin-top: -999px
}

.skip-to-content a:focus {
    margin: 0;
    background: #fd0;
    color: #000;
    display: block;
    width: 100%;
    padding: 10px 15px;
}

header {
    padding: 40px 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

#main-content {
    padding: 40px 20px;
}

#password-reset-success-page,
#forgotten-userid-success-page {
    text-align: center;
}

.content {
    flex: 1 0 auto;
}

/* Footer */

footer {
    background: #f2f2f2;
    margin-top: 40px;
    text-align: center;
    font-size: 16px;
    border-top: 2px solid #A81E2D;
}

#footer-wrapper {
    margin: 0 auto;
    max-width: 960px;
    padding: 20px;
    font-size: 1rem;
}

.logo {
    width: 150px;
}

label {
    display: block;
    margin-bottom: 10px;
}

input {
    padding: 8px;
    margin-bottom: 10px;
    width: 100%;
    font-size: 18px;
    filter: none;
}

h1 {
    margin: 0 0 20px 0;
    font-size: 40px;
    color: #A81E2D;
}

button,
a.button {
    padding: 10px 35px;
    background: #f7e8eb;
    color: #A81E2D;
    border: 0;
    font-size: 16px;
    line-height: 25px;
    font-size: 18px;
    text-decoration: none;
    display: inline-block;
    border: 1px solid #A81E2D;
}

button:hover,
button:focus-visible,
a.button:hover,
a.button:focus-visible {
    background: #A81E2D;
    box-shadow: 0;
    color: #fff;
    text-decoration: none;
    border: 1px solid #A81E2D;
    cursor: pointer;
}

input {
    background: #fff;
    border: 2px solid #555;
}

.input-validation-error {
    border: 3px solid #d4351c;
}

input:focus,
button:focus-visible,
a.button:focus-visible,
.error-summary:focus {
    box-shadow: 0 0 1px 4px #fd0;
}

a {
    color: #A81E2D;
}

a:hover {
    color: #cb8035;
}

a:visited {
    color: #A81E2D;
}

a:focus-visible {
    background: #fd0;
    box-shadow: 0 -2px #fd0,0 4px #0b0c0c;
    color: #000;
    text-decoration: none;
}

.field-label {
    display: block;
    font-weight: 700;
    line-height: 25px;
}

.field-hint {
    display: block;
    color: #555;
    line-height: 25px;
}

.field {
    margin-bottom: 20px;
}

[type=text],
[type=password],
[type=email] {
    max-width: 400px;
}

[type=date] {
    max-width: 200px;
    letter-spacing: 2px;
}

.nominated-account {
    max-width: 80px;
    text-align: center;
    letter-spacing: 2px;
}

.forgotten-details-links a,
.below-button-links a {
    line-height: 25px;
    margin-bottom: 15px;
    float: left;
    clear: both;
}

/* Error Styling */
.error-summary {
    background: #fff;
    border: 4px solid #d4351c;
    color: #d4351c;
    padding: 20px;
    margin-bottom: 20px;
    max-width: 400px;
}

.validation-summary-errors ul {
    padding: 0;
    margin: 0;
}

.validation-summary-errors ul li {
    list-style: none;
    font-weight: bold;
    margin: 10px 0 0 0;
    line-height: 24px;
}

.error-summary h2 {
    color: #000;
    margin: 0;
    font-size: 23px;
}

.error-summary a {
    color: #d4351c;
    font-weight: bold;
}

.field-error {
    color: #d4351c;
    font-weight: bold;
    display: block;
    background-image: url(../images/error_48px.svg);
    margin: 10px 0;
    background-position: left center;
    background-size: 31px;
    background-repeat: no-repeat;
    padding: 10px 0 10px 40px;
}

.error-summary p {
    margin: 10px 0 0 0;
}

/* Password rules */

.password-rules {
    margin-bottom: 20px;
}

.password-rules .rule {
    margin-bottom: 10px;
    background-image: url(../images/icons/dot.svg);
    background-repeat: no-repeat;
    background-size: 18px 18px;
    background-position: left 2px;
    padding-left: 25px;
    line-height: 130%;
}

.password-rules .tick {
    background-image: url(../images/icons/tick.svg);
}

.password-rules .cross {
    background-image: url(../images/icons/cross.svg);
}

.hidden {
    display: none;
}

/* SPINNER/LOADER */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: none;
    text-align: center;
    overflow: hidden;
    color: #000;
}

.fade-in {
    display: block;
    animation: fade-in 1s;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 0.98;
    }
}

.loader {
    border: 10px solid #F2F2F2;
    border-top: 10px solid #A81E2D;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 3s linear infinite;
    margin: 20% auto 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media only screen and (max-width: 980px) {
    footer {
        text-align: left;
    }

    footer ul li {
        display: block;
        padding: 0 0 10px 0;
        border: 0;
    }
}

/* Responsive */

@media only screen and (max-width: 600px) {
    .container {
        width: 100%;
    }

    #main-content {
        padding: 20px;
    }

    body {
        font-size: 16px;
    }

    h1 {
        font-size: 30px;
    }

    p {
        line-height: 20px;
    }

    .success-img {
        max-width: 200px;
    }
}

.field-validation-valid {
    display: none;
    padding: 0 0 0 0;
}

/* Feature Set - Only visible when a feature is set */

#feature-id-set {
    position: static;
    top: 0;
    z-index: 999;
	display: block;
	box-sizing: border-box;
    background-color: #000;
    color: #fff;
	width: 100%;
	padding: 10px 20px;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

#feature-id-set a {
	color: #fff;
}

#feature-id-set a:hover {
	color: #f6f6f6;
}
