@import "./assets/css/fonts.css";
@import "./assets/css/main.css";

:root {
    --animation-duration: 1s;
    --animation-delay: 30s;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
}

.page-wrapper {
    display: table-cell;
    width: 100vw;
    height: 100vh;
    vertical-align: middle;
}

.form--item .messageCell span {
    display: none;
}

/* Login with a code page */

.form--item .sublabel {
    padding: 0.625rem 0 0;
    text-align: right;
}

.sublabel a {
    text-decoration: none;
    font-weight: 300;
}

.section--heading {
    padding-bottom: 1.875rem;
}

.form--heading {
    margin: 0 auto 0.75rem;
    font-weight: 500;
    font-size: 1.3125rem;
    line-height: 1.75rem;
    letter-spacing: 0.10em;
    width: 70%;
}

.form--content {
    margin-bottom: 2.5rem;
}

.success-msg {
    font-size: 1.3125rem;
    line-height: 3rem;
    letter-spacing: 0.10em;
}

.form--tip {
    width: 95%;
    font-size: 1rem;
    margin: 0 auto 0.8rem;
}

.form .form--item.enter-code {
    margin-bottom: 1rem;
}

.errorMsg {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    height: 100%;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    60% { position: initial; }
    100% { opacity: 1; user-select: auto; z-index: auto; }
}

@-moz-keyframes fadeIn {
    0% { opacity: 0; }
    60% { position: initial; }
    100% { opacity: 1; user-select: auto; z-index: auto; }
}

@-webkit-keyframes fadeIn {
    0% { opacity: 0; }
    60% { position: initial; }
    100% { opacity: 1; user-select: auto; z-index: auto; }
}

@-o-keyframes fadeIn {
    0% { opacity: 0; }
    60% { position: initial; }
    100% { opacity: 1; user-select: auto; z-index: auto; }
}

@-ms-keyframes fadeIn {
    0% { opacity: 0; }
    60% { position: initial; }
    100% { opacity: 1; user-select: auto; z-index: auto; }
}

.form--cta {
    position: relative;
    margin-bottom: 1rem;
    color: var(--col-grey);
    animation: fadeIn var(--animation-duration) var(--animation-delay) forwards;
    -webkit-animation: fadeIn var(--animation-duration) var(--animation-delay) forwards;
    -moz-animation: fadeIn var(--animation-duration) var(--animation-delay) forwards;
    -o-animation: fadeIn var(--animation-duration) var(--animation-delay) forwards;
    -ms-animation: fadeIn var(--animation-duration) var(--animation-delay) forwards;
    opacity: 0;
    z-index: -1;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.form--cta p {
    line-height: 1;
}

.form--cta span {
    margin-right: 0.25rem;
}

.is-sent {
    color: var(--col-success);
    -webkit-text-fill-color: var(--col-success);
    text-decoration: none;
    pointer-events: none;
    font-weight: 700;
}

.resend-code {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

@media (max-width: 700px) {
    .form--cta p,
    .bottom-cta p {
        display: flex;
        flex-direction: column;
    }

    .form--cta span,
    .bottom-cta span {
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
}

.formInput {
    display: none;
}

@media screen and (min-width: 1025px) {
    .login-with-pass-btn {
        padding: 1.125rem 5.8rem;
    }
}

@media (max-width: 1600px) {
    .success-msg {
        font-size: 1rem;
    }

    .form--cta {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .form .form--item.enter-code {
        margin-bottom: 0.8rem;
    }

    .form--tip {
        font-size: 0.8rem;
        width: 100%;
    }
}

@media (max-width: 450px) {
    .success-msg {
        font-size: 0.9rem;
    }

    .section--heading {
        padding-bottom: 0.5rem;
    }

    .form--content,
    .form--heading {
        font-size: 0.95rem;
    }

    .form--heading {
        width: 100%;
    }

    .page-wrapper {
        height: 92vh;
    }
}