.auth-page {

    --auth-heading: #13231c;
    --auth-paragraph: #3a5247;
    --auth-muted: #6f867d;
    --auth-placeholder: #9bb0a7;
    --auth-stroke: #dbe8e2;
    --auth-surface: #ffffff;
    --auth-white: #ffffff;
    --auth-green: #16a085;
    --auth-page-bg: #f6f9f8;
    --auth-rule: #e7efeb;

    --auth-green-hover: #12816b;
    --auth-focus-ring: rgba(22, 160, 133, .18);
    --auth-danger: #d12a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 620px;
    padding: 64px 24px;
    background: var(--auth-page-bg);
    font-family: 'Open Sans', 'Open Sans Fallback', Arial, Helvetica, sans-serif;
    font-variation-settings: "wdth" 100;
}

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

.auth-card {
    width: 100%;
    max-width: 412px;
}

.auth-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;

    line-height: 38px;
    letter-spacing: normal;
    color: var(--auth-heading);
}

.auth-subtitle {
    margin: 8px 0 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--auth-muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding-top: 26px;
}

.auth-page--signup .auth-form {
    padding-top: 24px;
}

.auth-field {
    display: flex;
    flex-direction: column;
}

.auth-label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    color: var(--auth-heading);
}

.auth-field--tight > .auth-label {
    margin-bottom: 7px;
}

.auth-field-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.auth-field-head > .auth-label {
    margin-bottom: 0;
}

.auth-link-sm {
    font-size: 12px;
    line-height: 16px;
    color: var(--auth-green);
    text-decoration: none;
    white-space: nowrap;
    background: none;
    border: 0;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
}

.auth-link-sm:hover,
.auth-link-sm:focus {
    color: var(--auth-green-hover);
    text-decoration: underline;
}

.auth-input {
    width: 100%;
    height: 46px;
    padding: 0 12px;
    border: 1px solid var(--auth-stroke);
    border-radius: 12px;
    background: var(--auth-surface);
    color: var(--auth-heading);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-input--47 {
    height: 47px;
}

.auth-input--48 {
    height: 48px;
    padding: 0 14px;
    border-radius: 11px;
}

.auth-input::placeholder {
    color: var(--auth-placeholder);
    opacity: 1;
}

.auth-input:focus {
    border-color: var(--auth-green);
    box-shadow: 0 0 0 3px var(--auth-focus-ring);
}

.auth-input.is-invalid {
    border-color: var(--auth-danger);
}

.auth-input-wrap {
    position: relative;
}

.auth-input--password {
    padding-inline-end: 40px;
}

.auth-eye {
    position: absolute;
    inset-inline-end: 13px;
    inset-block-start: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
}

.auth-eye::after {
    content: "";
    position: absolute;
    inset: -12px;
}

.auth-eye:focus-visible {
    outline: 2px solid var(--auth-green);
    outline-offset: 4px;
    border-radius: 2px;
}

.auth-eye img {
    display: block;
    width: 20px;
    height: 20px;
}

.auth-check {
    display: flex;
    align-items: center;
}

.auth-check-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.auth-check-label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: var(--auth-paragraph);
    cursor: pointer;
}

.auth-check-label::before {
    content: "";
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 1px solid var(--auth-stroke);
    border-radius: 5px;
    background: var(--auth-surface) no-repeat center center;
    background-origin: border-box;
    background-size: 13.5px 13.5px;
    transition: background-color .15s ease, border-color .15s ease;
}

.auth-check-input:checked + .auth-check-label::before {
    border-color: var(--auth-green);
    background-color: var(--auth-green);
    background-image: url("../img/auth/checkbox-tick.svg");
}

.auth-check-input:focus-visible + .auth-check-label::before {
    outline: 2px solid var(--auth-green);
    outline-offset: 2px;
}

.auth-terms {
    display: flex;
    align-items: flex-start;
}

.auth-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--auth-muted);
    cursor: pointer;
}

.auth-terms-label::before {
    content: "";
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 1px solid var(--auth-stroke);
    border-radius: 4px;
    background: var(--auth-surface) no-repeat center center;
    background-origin: border-box;
    background-size: 11px 11px;
    transition: background-color .15s ease, border-color .15s ease;
}

.auth-check-input:checked + .auth-terms-label::before {
    border-color: var(--auth-green);
    background-color: var(--auth-green);
    background-image: url("../img/auth/checkbox-tick.svg");
}

.auth-check-input:focus-visible + .auth-terms-label::before {
    outline: 2px solid var(--auth-green);
    outline-offset: 2px;
}

.auth-terms-label a {
    font-weight: 700;
    color: var(--auth-green);
    text-decoration: none;
}

.auth-terms-label a:hover,
.auth-terms-label a:focus {
    color: var(--auth-green-hover);
    text-decoration: underline;
}

@media (pointer: coarse) {
    .auth-check-label,
    .auth-terms-label {
        padding: 12px 0;
        margin: -12px 0;
    }

    .auth-link-sm {
        padding: 14px 0;
        margin: -14px 0;
    }

    .auth-page--signup .auth-eye::after,
    .auth-page--reset .auth-eye::after {
        inset: -14px;
    }

    .auth-page--forgot .auth-foot a {
        display: inline-block;
        padding: 12px 16px;
        margin: -12px -16px;
    }
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    border: 0;
    border-radius: 12px;
    background: var(--auth-green);
    color: var(--auth-white);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
    transition: background-color .15s ease;
}

.auth-submit:hover,
.auth-submit:focus {
    background: var(--auth-green-hover);
    color: var(--auth-white);
}

.auth-submit:focus-visible {
    outline: 2px solid var(--auth-green);
    outline-offset: 2px;
}

.auth-submit[disabled] {
    opacity: .7;
    cursor: default;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1 1 0;
    min-width: 1px;
    height: 1px;
    background: var(--auth-rule);
}

.auth-divider span {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    color: var(--auth-muted);
}

.auth-social {
    padding-top: 16px;
}

.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 46px;
    padding: 12px;
    border: 1px solid var(--auth-stroke);
    border-radius: 12px;
    background: var(--auth-surface);
    color: var(--auth-heading);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.auth-social-btn:hover,
.auth-social-btn:focus {
    border-color: var(--auth-green);
    color: var(--auth-heading);
    text-decoration: none;
}

.auth-social-btn:focus-visible {
    outline: 2px solid var(--auth-green);
    outline-offset: 2px;
}

.auth-social-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    overflow: hidden;
}

.auth-social-icon img {
    display: block;
    width: 15.5px;
    height: 16px;
}

.auth-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 24px 42px 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--auth-muted);
    text-align: center;
    white-space: nowrap;
}

.auth-page--signup .auth-foot {
    padding: 16px 0 0;
}

.auth-foot a {
    font-weight: 700;
    color: var(--auth-green);
    text-decoration: none;
}

.auth-foot a:hover,
.auth-foot a:focus {
    color: var(--auth-green-hover);
    text-decoration: underline;
}

.auth-error {
    margin: 0;
    padding-top: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    color: var(--auth-danger);
}

.auth-alert {
    padding: 12px 14px;
    margin: 16px 0 0;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    line-height: 20px;
}

.auth-alert--error {
    border-color: #f5c6cb;
    background: #f8d7da;
    color: #721c24;
}

.auth-alert--success {
    border-color: #c3e6cb;
    background: #d4edda;
    color: #155724;
}

@media (max-width: 575.98px) {
    .auth-page {
        padding: 40px 16px;
    }

    .auth-foot {
        padding-inline: 0;
    }
}

@media (max-width: 479.98px) {
    .auth-foot {
        flex-wrap: wrap;
        white-space: normal;
    }
}

@media (max-width: 359.98px) {
    .auth-page {
        padding: 32px 12px;
    }
}

@media (max-height: 700px) {
    .auth-page {
        align-items: flex-start;
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page *,
    .auth-page *::before,
    .auth-page *::after {
        transition: none !important;
    }
}

.darkmode .auth-page {
    --auth-heading: #ffffff;
    --auth-paragraph: #d0d0d0;
    --auth-muted: #b8b8b8;
    --auth-placeholder: #8b8b8b;
    --auth-stroke: #424242;
    --auth-surface: #2b2b2b;
    --auth-white: #ffffff;
    --auth-green: #16a085;
    --auth-page-bg: #040404;
    --auth-rule: #3a3a3a;
    --auth-green-hover: #12816b;
    --auth-focus-ring: rgba(22, 160, 133, .28);
    --auth-danger: #f5828b;
}

.darkmode .auth-page {
    background: var(--auth-page-bg);
    color: var(--auth-muted);
}

.darkmode .auth-page .auth-title,
.darkmode .auth-page .auth-label {
    color: var(--auth-heading);
}

.darkmode .auth-page .auth-subtitle,
.darkmode .auth-page .auth-foot,
.darkmode .auth-page .auth-divider span,
.darkmode .auth-page .auth-terms-label {
    color: var(--auth-muted);
}

.darkmode .auth-page .auth-check-label {
    color: var(--auth-paragraph);
}

.darkmode .auth-page .auth-input {
    background: var(--auth-surface);
    border-color: var(--auth-stroke);
    color: #ffffff;
}

/* Must out-specify the rule above, which would otherwise repaint the border of
   a field JS has flagged with .is-invalid. */
.darkmode .auth-page .auth-input.is-invalid {
    border-color: var(--auth-danger);
}

.darkmode .auth-page .auth-input::placeholder {
    color: var(--auth-placeholder);
}

.darkmode .auth-page .auth-check-label::before,
.darkmode .auth-page .auth-terms-label::before {
    background-color: var(--auth-surface);
    border-color: var(--auth-stroke);
}

.darkmode .auth-page .auth-check-input:checked + .auth-check-label::before,
.darkmode .auth-page .auth-check-input:checked + .auth-terms-label::before {
    background-color: var(--auth-green);
    border-color: var(--auth-green);
}

.darkmode .auth-page .auth-submit {
    background: var(--auth-green);
    color: #ffffff;
}

.darkmode .auth-page .auth-submit:hover,
.darkmode .auth-page .auth-submit:focus {
    background: var(--auth-green-hover);
    color: #ffffff;
}

.darkmode .auth-page .auth-divider::before,
.darkmode .auth-page .auth-divider::after {
    background: var(--auth-rule);
}

.darkmode .auth-page .auth-social-btn {
    background: var(--auth-surface);
    border-color: var(--auth-stroke);
    color: var(--auth-heading);
}

.darkmode .auth-page .auth-social-btn:hover,
.darkmode .auth-page .auth-social-btn:focus {
    background: #353535;
    border-color: var(--auth-green);
    color: var(--auth-heading);
}

.darkmode .auth-page .auth-link-sm,
.darkmode .auth-page .auth-foot a,
.darkmode .auth-page .auth-terms-label a {
    color: var(--auth-green);
}

.darkmode .auth-page .auth-link-sm:hover,
.darkmode .auth-page .auth-foot a:hover,
.darkmode .auth-page .auth-terms-label a:hover {
    color: var(--auth-green-hover);
}

.darkmode .auth-page .auth-error {
    color: var(--auth-danger);
}

.darkmode .auth-page img {
    opacity: 1;
}

.darkmode .auth-page .auth-alert--error {
    background: #3a1d20;
    border-color: #6b2b31;
    color: #f5b8bd;
}

.darkmode .auth-page .auth-alert--success {
    background: #16311f;
    border-color: #2d5c3c;
    color: #a9e0bb;
}

.auth-page--signup .auth-card {
    max-width: 408px;
}

.auth-page--signup .auth-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-page--signup .auth-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}

.auth-page--signup .auth-subtitle {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.auth-page--signup .auth-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
}

.auth-page--signup .auth-label {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    color: var(--auth-heading);
}

.auth-page--signup .auth-input {
    height: 48px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.auth-page--signup .auth-input--password {
    padding-inline-end: 44px;
}

.auth-page--signup .auth-eye {
    inset-inline-end: 16px;
    width: 16px;
    height: 16px;
}

.auth-page--signup .auth-eye img {
    width: auto;
    height: auto;
    max-width: 16px;
    max-height: 16px;
}

.auth-page--signup .auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.auth-page--signup .auth-terms-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--auth-muted);
}

.auth-page--signup .auth-terms-label::before {
    width: 16px;
    height: 16px;

    margin-inline-end: 4px;
    border-radius: 4px;
    background-size: 9px 9px;
}

.auth-page--signup .auth-terms-label a {
    font-weight: 500;
    color: var(--auth-green);
    text-decoration: none;
}

.auth-page--signup .auth-terms-label a:hover,
.auth-page--signup .auth-terms-label a:focus {
    text-decoration: underline;
}

.auth-page--signup .auth-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
}

.auth-page--signup .auth-submit,
.auth-page--signup .auth-social-btn {
    height: 48px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.auth-page--signup .auth-social-btn {
    gap: 8px;
    color: var(--auth-heading);
}

.auth-page--signup .auth-social-icon,
.auth-page--signup .auth-social-icon img {
    width: 16px;
    height: 16px;
}

.auth-page--signup .auth-social-icon img {
    width: 14px;
    height: 14px;
}

.auth-page--signup .auth-divider {
    padding-top: 0;
    gap: 12px;
}

.auth-page--signup .auth-divider span {
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    color: var(--auth-placeholder);
}

.auth-page--signup .auth-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding-top: 24px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--auth-muted);
}

.auth-page--signup .auth-foot a {
    font-weight: 500;
    color: var(--auth-green);
}

@media (max-width: 424.98px) {
    .auth-page--signup .auth-terms-label {
        row-gap: 0;
    }
}

.auth-page--forgot .auth-card,
.auth-page--verify .auth-card,
.auth-page--reset .auth-card {
    max-width: 408px;
}

.auth-page--forgot .auth-head,
.auth-page--verify .auth-head,
.auth-page--reset .auth-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-page--forgot .auth-title,
.auth-page--verify .auth-title,
.auth-page--reset .auth-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}

.auth-page--forgot .auth-subtitle,
.auth-page--verify .auth-subtitle,
.auth-page--reset .auth-subtitle {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.auth-page--forgot .auth-fields,
.auth-page--reset .auth-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
}

.auth-page--forgot .auth-label,
.auth-page--reset .auth-label {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}

.auth-page--forgot .auth-input,
.auth-page--reset .auth-input {
    height: 48px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.auth-page--forgot .auth-actions,
.auth-page--verify .auth-actions,
.auth-page--reset .auth-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
}

.auth-page--forgot .auth-submit,
.auth-page--verify .auth-submit,
.auth-page--verify .auth-social-btn,
.auth-page--reset .auth-submit {
    height: 48px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
}

.auth-page--forgot .auth-foot {
    padding: 16px 0 0;
}

.auth-page--forgot .auth-foot a {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.auth-page--verify .auth-divider {
    gap: 12px;
    padding-top: 0;
}

.auth-page--verify .auth-divider span {
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    color: var(--auth-placeholder);
}

.auth-page--verify .auth-foot {
    gap: 8px;
    padding: 24px 0 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.auth-page--verify .auth-link-sm {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.auth-page--verify .auth-link-sm[disabled],
.auth-page--verify .auth-link-sm[disabled]:hover {
    color: var(--auth-placeholder);
    text-decoration: none;
    cursor: default;
}

.auth-page--verify .auth-error {
    text-align: center;
}

.auth-page--verify .auth-error a,
.auth-page--reset .auth-error a {
    color: inherit;
    text-decoration: underline;
}

.auth-page--reset .auth-input--password {
    padding-inline-end: 44px;
}

.auth-page--reset .auth-input[disabled] {
    opacity: .6;
    cursor: default;
}

.auth-page--reset .auth-eye {
    inset-inline-end: 16px;
    width: 16px;
    height: 16px;
}

.auth-page--reset .auth-eye img {
    width: auto;
    height: auto;
    max-width: 16px;
    max-height: 16px;
}

.darkmode .auth-page--verify .auth-link-sm[disabled],
.darkmode .auth-page--verify .auth-link-sm[disabled]:hover {
    color: var(--auth-placeholder);
}

.darkmode .auth-page--verify .auth-social-btn {
    background: var(--auth-surface);
    border-color: var(--auth-stroke);
    color: var(--auth-heading);
}

.darkmode .auth-page--reset .auth-input[disabled] {
    background: var(--auth-surface);
    color: var(--auth-placeholder);
}
