@import "https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700";

:root {
    --main-color: #607d8a;
    --input-border-radius: 0.15rem;
    --font-color: rgb(64, 64, 64);
    --link-color: #003a92;
    --background-image: url(https://stsimplifidev.blob.core.windows.net/signin/background-ukr.png)
}

/*
 * Global Styles
 */

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--main-color);
    color: var(--font-color);
}

body,
button,
input {
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
}

ul,
li {
    margin: 0;
    padding: 0;
}

a {
    color: var(--link-color);
}

button {
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    user-select: none;

    border: 1px solid transparent;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: var(--input-border-radius);
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,
        box-shadow 0.15s ease-in-out;
    min-width: 150px;
}

/*
 * Component Visibility
 */

.intro {
    display: none;
}

.helpLink {
    display: none;
}

/*
 * Main Container
 */

.wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--main-color);
    background-image: var(--background-image);
    background-size: cover;
}

/*
 * Welcome header
 */

.welcome {
    color: white;
    margin-top: -150px;
    margin-bottom: 150px;
}

/*
 * Sign In Form
 */

.signin {
    width: 100%;
    max-width: 500px;
    background-color: white;
    border-radius: 0.5rem;
    box-sizing: border-box;
    box-shadow: 2px 2px 10px 0.25rem rgb(0 0 0 / 20%);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.signin__logo {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background-color: white;
    padding: 0.5rem;
    margin-top: -80px;
}

.signin__logo img {
    max-width: 100%;
}

.signin__form,
.forgotten-password__form {
    width: 100%;
    display: flex;
    /* Default has the "Social links" at the top. This reverses the order so they're at the bottom. */
    flex-direction: column-reverse;
}

.localAccount,
#attributeVerification {
    margin: 0 3rem;
}

/*
 * Email/Password Fields
 */

input[type="password"]:not(:placeholder-shown) {
    letter-spacing: 0.2rem;
}

.entry-item:not(:first-child),
.attrEntry {
    margin-top: 1.5rem;
}

label,
.entry-item a {
    display: block;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
}

input {
    display: block;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    appearance: none;
    padding: 0.5rem 0.75rem;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: var(--input-border-radius);
    box-sizing: border-box;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input:focus {
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 var(--input-border-radius) rgb(13 110 253 / 25%);
}

.password-label {
    display: flex;
}

.password-label label {
    flex-grow: 1;
}

/* Button Panel */

.divider h2 {
    overflow: hidden;
    text-align: center;
    font-size: 1rem;
    margin: 0;
}

.divider h2:before,
.divider h2:after {
    background-color: #ddd;
    content: "";
    display: inline-block;
    height: 1px;
    position: relative;
    vertical-align: middle;
    width: 50%;
    margin-top: -4px;
}

.divider h2:before {
    right: 0.5em;
    margin-left: -50%;
}

.divider h2:after {
    left: 0.5em;
    margin-right: -50%;
}

.buttons {
    margin: 2rem 0 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.buttons button {
    margin: 0 0.5rem;
}

/* #next is the "Sign In" button. */
#next,
#continue,
.sendCode {
    width: 200px;
}

#next,
#continue,
.sendCode,
.verifyCode {
    color: #fff;
    background-color: #0d6efd;
    border: #0d6efd;
}

#next:hover,
#continue:hover,
.sendCode:hover,
.verifyCode:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

#next:active,
#continue:active,
.sendCode:active,
.verifyCode:active {
    background-color: #0a58ca;
    border-color: #0a53be;
}

#next:focus,
#continue:focus,
.sendCode:focus,
.verifyCode:focus {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    box-shadow: 0 0 0 var(--input-border-radius) rgb(49 132 253 / 50%);
}

.options {
    display: flex;
    justify-content: end;
    margin: 0;
    flex-direction: column;
    align-items: center;
}

/* .accountButton is the "Sign in with your CET Account" button. */
.accountButton {
    width: 275px;
    background-color: transparent;
    color: var(--font-color);
    border: none;
    margin: 1rem 0 1.5rem;
    box-shadow: 1px 1px var(--input-border-radius) rgb(0 0 0 / 50%);
}

.accountButton:active,
.accountButton:focus,
.accountButton:hover {
    background: rgb(250, 250, 250);
    box-shadow: 2px 2px var(--input-border-radius) rgb(0 0 0 / 50%);
}

/*
 * Forgotten Password Form  
 */

#attributeList ul li {
    list-style: none;
    margin: 1rem 0;
}

.buttons #cancel {
    padding: 0;
    margin-left: auto;
    background: 0 0;
    border: 0;
    width: inherit;
    position: absolute;
    background-color: transparent;
    top: 16px;
    left: 32px;
    font-size: 1em;
    color: #505050;
    box-shadow: none;
    text-align: left;
}

button#cancel::before {
    border-style: solid;
    border-width: 0.2em 0.2em 0 0;
    content: "";
    display: inline-block;
    height: 0.45em;
    position: relative;
    left: -0.4rem;
    top: 0.4rem;
    vertical-align: top;
    width: 0.45em;
    transform: rotate(-135deg);
}

/*
 * Responsive Stuff
 */

@media screen and (max-width: 600px) {
    .welcome {
        margin-top: -40px;
        margin-bottom: 100px;
        font-size: 0.8rem;
    }

    .signin {
        width: 90%;
    }
}