input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h5 {
    margin-top: 30px;
    font-size: 0.7rem;
    color: #2d344c;
}

h5 a {
    text-decoration: none;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #2d344c;
    display: grid;
    place-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.container-text h2 {
    text-align: center;
    color: #2d344b;
}

.container {
    background-color: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    place-items: center;
    line-height: 1.5;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.185);
    padding: 26px;
    height: auto;
    overflow: auto;
}

@media screen and (max-width:800px) {
    .container {
        width: 90vw;
    }
    .f_input {
        width: 100%;
        min-width: auto !important;
    }
}

@media screen and (max-width:500px) {
    .logo{
        flex-direction: column; 
    }
}

.container-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: #fff;
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    color: #2E4052;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.164);
    cursor: pointer;
}

.container img {
    max-width: 220px;
    object-fit: cover;
    object-position: center;
}

.container-text,
.logo {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 30px;
}

.container-text form {
    width: 100%;
}

.container-text h2 {
    font-size: 1rem;
    color: #5f89b9;
}

.container-text p {
    font-size: 14px;
    color: #3B4169;
    margin: 10px 0;
}

.container-text button {
    width: 100%;
    border: none;
    padding: 14px;
    border-radius: 3px;
}

.container-text button {
    background-color: #11998e;
    display: block;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 5px 20px #89caff94;
    transition: box-shadow 0.3s ease-in-out;
    margin-top: 50px;
    margin-bottom: 20px;
}

.container-text button:hover {
    box-shadow: none;
}

.container-text .button.generic {
    background-color: transparent;
    color: grey;
    box-shadow: none;
    text-decoration: none;
    text-align: center;
    width: 100%;
    display: block;
}

.container-text span:not(.opselect span) {
    display: block;
    text-align: center;
    margin: 20px 0 0;
    color: #BABDCB;
    font-size: 12px;
}

p.error,
div.success {
    font-size: 0.7rem;
    color: #dd4e4e;
    font-weight: 600;
    text-align: center;
}

div.success {
    color: #11998e;
}

.fg {
    position: relative;
    padding: 15px 0 0;
    margin-top: 20px;
    width: 100%;
}

select.f_input {
    min-width: 380px;
    width: 100%;
    padding: 12px;
    border: 1px solid #e9e9e9;
    outline: none;
    font-size: 0.8rem;
}

.f_input {
    font-family: inherit;
    width: 100%;
    min-width: 380px;
    border: 0;
    border: 2px solid #99adc3;
    border-radius: 6px;
    outline: 0;
    font-size: 0.8rem;
    color: #798579;
    padding: 16px;
    background: transparent;
    transition: border-color 0.2s;
}

.f_input::placeholder {
    color: transparent;
}

.f_input:placeholder-shown~.f_label {
    font-size: 0.8rem;
    cursor: text;
    color: #9d9d9d;
    top: 31px;
    left: 14px;
}

.f_label {
    position: absolute;
    top: 5px;
    left: 14px;
    display: block;
    transition: 0.2s;
    font-size: 0.8rem;
    color: #5f89b9;
    padding: 0 4px;
    background-color: white;
}

.f_input:focus {
    padding: 16px;
    border: 2px solid #11998e;
    border-radius: 6px;
}

.f_input:focus~.f_label {
    position: absolute;
    top: 5px;
    display: block;
    transition: 0.2s;
    color: #11998e;
    font-weight: 700;
    padding: 0 4px;
    background-color: white;
}

.f_input:required,
.f_input:invalid {
    box-shadow: none;
}

#exception h2 {
    color: #ff8670;
    font-size: 2rem;
    text-align: left;
}

#exception h3 {
    font-weight: 100;
    color: #ababab;
}

#exception a {
    text-decoration: none;
    color: #90bb8f;
    font-size: 1rem;
    font-weight: 600;
}

a.sign_button {
    margin-top: 10px;
    padding: 6px;
    box-shadow: none;
    width: 100%;
    display: block;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    background-color: #f39200;
    color: white;
    border-radius: 3px;
}

a.generic_button {
    font-size: 0.8rem;
    margin-top: 10px;
    padding: 6px;
    background-color: transparent;
    box-shadow: none;
    color: #6d7e7a;
    width: 100%;
    display: block;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

p.signup_msg {
    font-size: 0.8rem;
    text-align: center;
    max-width: 380px;
}

form.new_code button {
    background-color: transparent;
    border: none;
    color: #516799;
    font-weight: bold;
    cursor: pointer;
}

div.extra_login_info {
    display: flex;
    gap: 20px;
    margin: 18px 0;
}

div.extra_login_info p {
    font-size: 0.8rem;
}

div.extra_login_info img {
    max-width: 100px;
    object-fit: contain;
}

@media screen and (max-width:600px) {
    div.extra_login_info {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}