.new-auth-layout .wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.new-auth-layout .wrapper > .new-auth-page {
    flex: 1 0 auto;
}

.new-auth-page {
    --auth-primary: #20a7ee;
    --auth-navy: #1f2d3d;
    --auth-muted: #6e8193;
    --auth-faint: #9fb0bf;
    --auth-line: #e3ecf2;
    --auth-tint: #f4f8fb;
    --auth-ok: #1bb98c;
    display: grid;
    min-height: 640px;
    padding: 44px 20px 64px;
    place-items: center;
    font-family: Poppins, system-ui, sans-serif;
}

@media (min-width: 1199px) and (max-width: 1700px) {
    .new-auth-layout .wrapper {
        min-height: calc(100vh / .75);
    }
}

.new-auth-page *,
.new-auth-page *::before,
.new-auth-page *::after {
    box-sizing: border-box;
}

.new-auth-page__card {
    width: 100%;
    max-width: 430px;
    padding: 30px 30px 28px;
    border: 1px solid var(--auth-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 70px -40px rgba(48, 75, 101, .5);
}

.new-auth-page__head {
    margin-bottom: 20px;
    text-align: center;
}

.new-auth-page__head h1 {
    margin: 0;
    color: var(--auth-navy);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.25;
}

.new-auth-page__head p {
    margin: 6px 0 0;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.5;
}

.new-auth-page__tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    padding: 4px;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    background: var(--auth-tint);
}

.new-auth-page__tabs a,
.new-auth-page__tabs button {
    flex: 1;
    padding: 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
}

.new-auth-page__tabs a.is-active,
.new-auth-page__tabs button.is-active {
    background: #fff;
    color: var(--auth-navy);
    box-shadow: 0 2px 8px rgba(48, 75, 101, .12);
}

.new-auth-page__google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    background: #fff;
    color: var(--auth-navy);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .15s ease;
}

.new-auth-page__google:hover {
    background: var(--auth-tint);
    color: var(--auth-navy);
}

.new-auth-page__google svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.new-auth-page__or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--auth-faint);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.new-auth-page__or::before,
.new-auth-page__or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--auth-line);
}

.new-auth-page__confirmation {
    margin: 0 0 16px;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}

.new-auth-page__confirmation strong {
    color: var(--auth-primary);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.new-auth-page__field {
    margin-bottom: 14px;
}

.new-auth-page__field label {
    display: block;
    margin-bottom: 7px;
    color: var(--auth-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.new-auth-page__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.new-auth-page__label-row a {
    color: var(--auth-primary);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.new-auth-page__field input {
    width: 100%;
    min-height: 50px;
    padding: 13px 15px;
    border: 1.5px solid var(--auth-line);
    border-radius: 12px;
    outline: none;
    background: #fbfdff;
    color: var(--auth-navy);
    font: inherit;
    font-size: 14.5px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.new-auth-page__field input::placeholder {
    color: var(--auth-faint);
}

.new-auth-page__field input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(32, 167, 238, .12);
}

.new-auth-page__field input[aria-invalid="true"] {
    border-color: #e04b4b;
    background: #fffafa;
}

.new-auth-page .input-error,
.new-auth-page .error-notif,
.new-auth-page .success-notif {
    position: static;
    display: none;
    width: auto;
    min-height: 0;
    margin-top: 6px;
    color: #e04b4b;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.new-auth-page .input-error.is-visible,
.new-auth-page .input-error:not(:empty),
.new-auth-page .error-notif:not(:empty),
.new-auth-page .success-notif:not(:empty) {
    display: block;
}

.new-auth-page .success-notif {
    margin-top: 6px;
    color: #15935f;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.new-auth-page__submit {
    position: relative;
    width: 100%;
    min-height: 50px;
    margin-top: 6px;
    padding: 14px;
    border: 0;
    border-radius: 12px;
    background: var(--auth-primary);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    transition: transform .16s ease;
}

.new-auth-page__submit:hover {
    transform: translateY(-1px);
}

.new-auth-page__submit[aria-busy="true"] {
    pointer-events: none;
    color: transparent;
}

.new-auth-page__submit[aria-busy="true"]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: new-auth-spin .75s linear infinite;
}

@keyframes new-auth-spin {
    to {
        transform: rotate(360deg);
    }
}

.new-auth-page__foot {
    margin: 16px 0 0;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.new-auth-page__foot a {
    color: var(--auth-primary);
    font-weight: 700;
    text-decoration: none;
}

.new-auth-page__foot button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--auth-primary);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.new-auth-page__foot span + a {
    margin-left: 4px;
}

.new-auth-page__foot span + button {
    margin-left: 4px;
}

.new-auth-page__resend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 2px 0 14px;
    color: var(--auth-muted);
    font-size: 12.5px;
}

.new-auth-page__resend button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--auth-primary);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.new-auth-page__resend button:disabled {
    cursor: default;
    opacity: .55;
}

.new-auth-page__safe {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 16px;
    color: var(--auth-faint);
    font-size: 12px;
    font-weight: 500;
}

.new-auth-page__safe svg {
    width: 14px;
    height: 14px;
    color: var(--auth-ok);
}

.new-auth-page [hidden] {
    display: none !important;
}

@media (max-width: 480px) {
    .new-auth-page {
        min-height: 0;
        padding: 24px 14px 44px;
        place-items: start center;
    }

    .new-auth-page__card {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .new-auth-page__label-row a,
    .new-auth-page__foot a {
        padding: 10px 0;
        margin-top: -10px;
        margin-bottom: -10px;
    }
}
