@import url(default.css);

/* body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    background-color: black;
    color: white;
    font-size: 1.5rem;
    font-family: "Lato", sans-serif;
} */

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px var(--panel) inset !important;
  -webkit-text-fill-color: var(--text) !important;
  transition: background-color 9999s ease-in-out 0s !important;
}

body {
    background-color: #5071f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    color: white;
    font-size: 1.5rem;
    font-family: 'Inter', sans-serif;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 45rem;
    padding: 2rem;
}

main>header {
    margin-bottom: 4rem;
}

main>header>h1 {
    font-size: 0;
}

main>header>h2 {
    font-size: 0;
}

main>header>div.qr-safety-logo {
    width: 35rem;
    height: 9.8rem;
    display: inline-block;
    color: #fff;
    background-color: currentColor;
    -webkit-mask: url("../images/logo-flex.svg") no-repeat center / contain;
    mask: url("../images/logo-flex.svg") no-repeat center / contain;
}

main>section.card {
    width: 100%;
    /* background-color: #fff; */
    color: black;
    padding: 4rem 3rem;
    border-radius: 1rem;
}

main>section.card>h3 {
    text-align: center;
    width: auto;
    font-weight: 400;
    font-size: 5rem;
    color: #FFF;
}

main>section.card>h4 {
    text-align: center;
    width: auto;
    font-weight: 400;
    font-size: 3rem;
    color: #FFF;
}

main>section.card>p {
    color: #737373;
    margin-top: 1rem;
    text-align: center;
}

main>section.card>form {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 3rem;
}

form :is(input[type="text"], input[type="email"], input[type="password"]) {
    padding: 1.5rem;
    width: 100%;
    margin-bottom: 2rem;
    /* background-color: #efefef; */
    background-color: transparent;
    border: .1rem solid #b4b3f9;
    border-radius: .5rem;
    font-weight: 600;
    color: #FFF;
    outline: none;
}

form :is(input[type="text"], input[type="email"], input[type="password"])::placeholder {
    color: #f0f0f0;
}

form :is(input[type="text"], input[type="email"], input[type="password"]):focus {
    border-color: #FFF;
}

form label {
    font-weight: 700;
    margin-bottom: .5rem;
    display: none;
}

form button[type=submit] {
    background-color: #3256f4;
    padding: 2rem 1.5rem;
    border: none;
    color: white;
    border-radius: .5rem;
    margin-top: 1rem;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
}

main>section.card>form button:not(.forgot):hover {
    opacity: .9;
}

main>section.card>form hgroup.password {
    display: flex;
    flex-direction: row;
    border: 1px solid #b4b3f9;    
    border-radius: .5rem;
    margin-bottom: 2rem;
}

main>section.card>form hgroup.password:has(input:focus, button:focus) {
    border-color: #FFF;
}

main>section.card>form hgroup.password input {
    border: none;
    margin-bottom: 0;   
}

main>section.card>form hgroup.password button{
    border: none;
    background-color: transparent;
    color: #b4b3f9;
    padding: 1rem;
    outline: none;
    cursor: pointer;
}

main>section.card>form hgroup.password button:active,
main>section.card>form hgroup.password button:focus {
    color: #FFF;
}


main>section.card.forgot hgroup {
    /* padding-left: 2rem;
    padding-right: 2rem; */
}

main>section.card.forgot hgroup>button {
    min-width: 13rem;
}

main>section.card p.hr {
    margin-top: 2rem;
    margin-bottom: 2rem;
    position: relative;
    color: #b4b3f9;
    text-transform: lowercase;
}

main>section.card p.hr::before {
    content: '';
    display: block;
    width: 40%;
    height: .1rem;
    background-color: #b4b3f9;
    position: absolute;
    top: 50%;
}

main>section.card p.hr::after {
    content: '';
    display: block;
    width: 40%;
    height: .1rem;
    background-color: #b4b3f9;
    position: absolute;
    top: 50%;
    right: 0;
}

main>section.card hgroup.social {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
}

/* main>section.card hgroup.social button {
    margin-right: 1rem;
} */

main>section.card hgroup.social button:last-child {
    margin-right: 0px;
}

main>section.card div.alert {
    text-align: left;
    margin-bottom: 1rem;    
    background: #fee2e2;
    color: #7f1d1d;
    border: .1rem solid #fecaca;
    padding: 1rem;
    border-radius: .5rem;
}

section.sent-mail h2 {
 font-size: 4.5rem;
 text-align: center;
 font-weight: 400;
}

section.sent-mail h3 {
    text-align: center;
    font-size: 4.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    color: #7CFC00;
}


section.sent-mail p {
    text-align: center;
}

section.sent-mail button.back {
    background-color: white;
    color: #1877F2;
    display: block;
    width: 100%;
    text-align: center;
    padding: 2rem 4rem;
    border-radius: .5rem;
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 600;
    margin-top: 2rem;
}

input.error,
hgroup:has(input.error) {
    border-color: #ff7f7f !important;
}


.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    width: 100%;
    padding: 1.2rem 1.4rem;
    border-radius: .6rem;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: filter .15s ease, box-shadow .2s ease, transform .06s ease;
}

.btn-social:active {
    transform: translateY(1px) scale(.99);
}

.btn-social .icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
}

.btn-social .label {
    white-space: nowrap;
}

/* Google visual */
.btn-google {
    background: #fff;
    color: #3c4043;
    border-color: #dadce0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.btn-google:hover {
    filter: brightness(1.02);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

/* Facebook visual */
.btn-facebook {
    background: #1877F2;
    color: #fff;
    box-shadow: 0 6px 18px rgba(24, 119, 242, .25);
}

.btn-facebook:hover {
    filter: brightness(1.05);
    box-shadow: 0 8px 22px rgba(24, 119, 242, .35);
}

/* estado desabilitado (atributo OU classe) */
.btn-social.is-disabled,
.btn-social:disabled {
    opacity: .6;
    cursor: not-allowed;
    filter: none;
    box-shadow: none;
}

button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    outline: none;
    -webkit-touch-callout: none;    
    -webkit-user-select: none;    
    -khtml-user-select: none;    
    -moz-user-select: none;    
    -ms-user-select: none;    
    user-select: none;
}

button:focus {
    opacity: .8;
}

button>.loader {
    width: 1.6rem;
    height: 1.6rem;
    margin-right: 1rem;
}

button.forgot {
    background-color: transparent;
    border: none;
    outline: none;
    color: #b4b3f9;
    font-weight: 700;
    cursor: pointer;
    padding: -.2rem;
    margin: .2rem;
    border-bottom: transparent solid .1rem;
    transition: border-color .2s;
}

button.forgot:hover,
button.forgot:active,
button.forgot:focus {
    border-color: #FFF;
    color: #FFF;
}

button.back {
    background-color: transparent;
    padding: 1.5rem;
    border: .1rem solid #FFF;
    color: #FFF;
    border-radius: .5rem;
    margin-top: 1rem;
    cursor: pointer;
    font-weight: 600;
}

button:disabled,
input:disabled {
    cursor: not-allowed !important;
    opacity: .6 !important;
    pointer-events: none;
}


.row {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.space-between {
    justify-content: space-between;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    main>section.card>form :is(input[type="text"], input[type="email"], input[type="password"], select, textarea) {
        font-size: 1.6rem;
        line-height: 1.4;
    }
}

.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-block;
    border-top: 3px solid #FFF;
    border-right: 3px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}