:root {
    color-scheme: light;

    --auth-page-bg: #edf4eb;
    --auth-card-bg: #ffffff;
    --auth-panel-bg: #ffffff;
    --auth-input-bg: #f6f7f4;
    --auth-input-hover: #ffffff;
    --auth-text: #151714;
    --auth-muted: #747a72;
    --auth-border: #dfe5dc;
    --auth-border-strong: #b9c4b5;
    --auth-accent: #ffb13d;
    --auth-accent-hover: #e69b2d;
    --auth-accent-soft: #fff1d8;
    --auth-green: #d1f8d2;
    --auth-green-strong: #5ca864;
    --auth-danger: #b42318;
    --auth-danger-bg: #fff1f1;
    --auth-shadow: 0 28px 75px rgba(38, 53, 34, 0.18);
    --auth-icon: #000;
}

html.auth-dark {
    color-scheme: dark;

    --auth-page-bg: #0f130f;
    --auth-card-bg: #191d19;
    --auth-panel-bg: #1b1f1b;
    --auth-input-bg: #252a25;
    --auth-input-hover: #2c322c;
    --auth-text: #f6f7f4;
    --auth-muted: #aeb5ac;
    --auth-border: #394139;
    --auth-border-strong: #566056;
    --auth-accent: #ffb13d;
    --auth-accent-hover: #ffc568;
    --auth-accent-soft: #3f321c;
    --auth-green: #26452a;
    --auth-green-strong: #8ed995;
    --auth-danger: #ffb4ae;
    --auth-danger-bg: #3d1c1c;
    --auth-shadow: 0 30px 85px rgba(0, 0, 0, 0.5);
    --auth-icon: #fff;
}

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

html,
body {
    min-height: 100%;
    margin: 0;
}

body.auth-page {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--auth-page-bg);
    color: var(--auth-text);
    font-family: "Inter", sans-serif;
    transition: background-color 180ms ease, color 180ms ease;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.auth-page__background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 14%, rgba(209, 248, 210, 0.82), transparent 31%),
        radial-gradient(circle at 88% 82%, rgba(255, 177, 61, 0.2), transparent 30%),
        var(--auth-page-bg);
}

.auth-page__background::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
        rgba(255, 255, 255, 0.2) 1px,
        transparent 1px
    );
    background-size: 100% 56px;
    opacity: 0.18;
}

.auth-dark .auth-page__background {
    background:
        radial-gradient(circle at 12% 14%, rgba(77, 125, 82, 0.24), transparent 30%),
        radial-gradient(circle at 88% 82%, rgba(255, 177, 61, 0.1), transparent 28%),
        var(--auth-page-bg);
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 42px;
}

.auth-card {
    display: grid;
    width: min(1220px, 100%);
    min-height: min(780px, calc(100vh - 84px));
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.94fr);
    overflow: hidden;
    /* border: 1px solid color-mix(in srgb, var(--auth-border) 78%, transparent); */
    border-radius: 24px;
    background: var(--auth-card-bg);
    box-shadow: var(--auth-shadow);
}

.auth-visual {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: #17201a;
}

.auth-visual__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 260ms ease;
}

.auth-visual__photo--light {
    opacity: 1;
}

.auth-visual__photo--dark {
    opacity: 0;
}

.auth-dark .auth-visual__photo--light {
    opacity: 0;
}

.auth-dark .auth-visual__photo--dark {
    opacity: 1;
}

.auth-card:hover .auth-visual__photo {
    transform: scale(1.025);
    transition: transform 0.6s ease;
}

.auth-visual__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(13, 17, 13, 0.13) 0%, rgba(13, 17, 13, 0.02) 40%, rgba(8, 11, 8, 0.74) 100%),
        linear-gradient(90deg, rgba(15, 18, 15, 0.08), transparent 54%);
}

.auth-dark .auth-visual__veil {
    background:
        linear-gradient(180deg, rgba(4, 7, 11, 0.18) 0%, rgba(4, 7, 11, 0.04) 38%, rgba(2, 5, 9, 0.82) 100%),
        linear-gradient(90deg, rgba(4, 7, 11, 0.2), transparent 58%);
}

.auth-visual__top {
    position: absolute;
    top: 24px;
    right: 24px;
    left: 24px;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.auth-brand-badge {
    display: inline-flex;
    width: min(210px, 48%);
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    text-decoration: none;
}

.auth-brand-badge img {
    display: block;
    width: 100%;
    max-width: 178px;
    height: auto;
}

.auth-back-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    /* border: 1px solid rgba(255, 255, 255, 0.48); */
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.193);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 400;
    text-decoration: none;
    backdrop-filter: blur(12px);
    transition: background-color 160ms ease, transform 160ms ease;
}

.auth-back-link:hover {
    background: rgba(22, 25, 22, 0.48);
    color: #ffffff;
    transform: translateY(-1px);
}

.auth-visual__message {
    position: absolute;
    right: 44px;
    bottom: 88px;
    left: 44px;
    z-index: 2;
    color: #ffffff;
}

.auth-visual__message p {
    margin: 0 0 10px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.auth-visual__message h2 {
    max-width: 540px;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 3.4vw, 3.55rem);
    font-weight: 200;
    line-height: 1.03;
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.3);
}

.auth-visual__dots {
    position: absolute;
    bottom: 32px;
    left: 44px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
}

.auth-visual__dots span {
    display: block;
    width: 30px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
}

.auth-visual__dots span.is-active {
    width: 47px;
    background: #ffffff;
}

.auth-content {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: 74px 68px 54px;
    background: var(--bg-color);
}

.auth-content__inner {
    width: min(100%, 510px);
}

.auth-theme-button {
    position: absolute;
    top: 24px;
    right: 28px;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--auth-border);
    border-radius: 50%;
    background: var(--auth-input-bg);
    color: var(--auth-text);
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.auth-theme-button:hover {
    border-color: var(--auth-border-strong);
    background: var(--auth-input-hover);
    transform: translateY(-1px);
}

.auth-theme-button__moon {
    display: none;
}

.auth-dark .auth-theme-button__sun {
    display: none;
}

.auth-dark .auth-theme-button__moon {
    display: inline-block;
}

.auth-form-header {
    margin-bottom: 34px;
}

.auth-form-header h1 {
    margin: 0 0 12px;
    color: var(--auth-text);
    font-family: "PT Serif", Georgia, serif;
    font-size: clamp(2.2rem, 3.3vw, 3.25rem);
    font-weight: 700;
    line-height: 1.06;
}

.auth-form-header p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.auth-inline-link {
    color: var(--auth-text);
    font-weight: 700;
    text-decoration-color: var(--auth-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.auth-inline-link:hover {
    color: var(--auth-accent-hover);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.auth-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-field {
    min-width: 0;
}

.auth-label {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--auth-text);
    font-size: 0.78rem;
    font-weight: 700;
}

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

.auth-input {
    display: block;
    width: 100%;
    min-height: 54px;
    padding: 13px 15px;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    outline: none;
    background: var(--card-bg);
    color: var(--auth-text);
    font-size: 0.94rem;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

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

.auth-input:hover {
    background: var(--auth-input-hover);
}

.auth-input:focus {
    border-color: var(--auth-green-strong);
    background: var(--auth-input-hover);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--auth-green-strong) 18%, transparent);
}

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

.auth-password-input {
    padding-right: 50px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
}

.auth-password-toggle:hover {
    background: color-mix(in srgb, var(--auth-border) 45%, transparent);
    color: var(--auth-text);
}

.auth-password-toggle__hide {
    display: none;
}

.auth-password-toggle.is-showing .auth-password-toggle__show {
    display: none;
}

.auth-password-toggle.is-showing .auth-password-toggle__hide {
    display: inline-block;
}

.auth-error {
    margin: 7px 0 0;
    color: var(--auth-danger);
    font-size: 0.77rem;
    line-height: 1.4;
}

.auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--auth-muted);
    font-size: 0.8rem;
    line-height: 1.45;
    cursor: pointer;
}

.auth-terms input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 1px;
    accent-color: var(--auth-accent);
}

.auth-terms strong {
    color: var(--auth-text);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--auth-accent);
    text-underline-offset: 3px;
}

.auth-submit-button {
    display: inline-flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 2px;
    padding: 13px 20px;
    border: 1px solid var(--auth-accent);
    border-radius: 10px;
    background: var(--auth-accent);
    color: #15120c;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.auth-submit-button:hover:not(:disabled) {
    border-color: var(--auth-accent-hover);
    background: var(--auth-accent-hover);
    box-shadow: 0 12px 24px rgba(230, 155, 45, 0.22);
    transform: translateY(-1px);
}

.auth-submit-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
    margin: 25px 0 18px;
    color: var(--auth-muted);
    font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: var(--auth-border);
}

.auth-social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-social-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--auth-border-strong);
    border-radius: 10px;
    background: transparent;
    color: var(--auth-text);
    font-size: 0.9rem;
    font-weight: 700;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.auth-social-button:not(:disabled):hover {
    border-color: var(--auth-accent);
    background: var(--auth-accent-soft);
    transform: translateY(-1px);
}

.auth-social-button:disabled {
    cursor: not-allowed;
    opacity: 0.78;
}

.auth-social-button i {
    font-size: 1.15rem;
    color: var(--auth-icon);
}

.auth-social-button svg {
    width: 16px;
}

.auth-social-button--google i {
    color: #4285f4;
}

.auth-social-button--apple i {
    color: var(--auth-text);
}

.auth-social-note {
    margin: 12px 0 0;
    color: var(--auth-muted);
    font-size: 0.7rem;
    line-height: 1.45;
    text-align: center;
}

.auth-loading-spinner {
    display: inline-block;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(21, 18, 12, 0.28);
    border-top-color: #15120c;
    border-radius: 50%;
    animation: auth-spin 0.75s linear infinite;
}

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

@media (max-width: 1050px) {
    .auth-shell {
        padding: 24px;
    }

    .auth-card {
        min-height: calc(100vh - 48px);
        grid-template-columns: minmax(0, 0.92fr) minmax(410px, 1fr);
    }

    .auth-content {
        padding-right: 42px;
        padding-left: 42px;
    }

    .auth-visual__message {
        right: 30px;
        left: 30px;
    }
}

@media (max-width: 820px) {
    .auth-shell {
        display: block;
        min-height: 100vh;
        padding: 14px;
    }

    .auth-card {
        display: flex;
        min-height: calc(100vh - 28px);
        flex-direction: column;
        border-radius: 19px;
    }

    .auth-visual {
        min-height: 300px;
        flex: 0 0 300px;
    }

    .auth-visual__top {
        top: 16px;
        right: 16px;
        left: 16px;
    }

    .auth-brand-badge {
        width: 170px;
        min-height: 58px;
        padding: 9px 12px;
    }

    .auth-brand-badge img {
        max-width: 145px;
    }

    .auth-back-link {
        min-height: 38px;
        padding: 7px 12px;
    }

    .auth-visual__message {
        right: 24px;
        bottom: 52px;
        left: 24px;
    }

    .auth-visual__message h2 {
        font-size: clamp(1.85rem, 8vw, 2.7rem);
    }

    .auth-visual__dots {
        bottom: 21px;
        left: 24px;
    }

    .auth-content {
        flex: 1 1 auto;
        padding: 72px 28px 38px;
    }

    .auth-theme-button {
        top: 18px;
        right: 20px;
    }

    .auth-content__inner {
        width: min(100%, 590px);
    }
}

@media (max-width: 560px) {
    .auth-shell {
        padding: 0;
    }

    .auth-card {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-visual {
        min-height: 240px;
        flex-basis: 240px;
    }

    .auth-brand-badge {
        width: 75px;
        min-height: 52px;
    }

    .auth-back-link span {
        display: none;
    }

    .auth-back-link {
        width: 39px;
        min-width: 39px;
        padding: 0;
        border-radius: 50%;
    }

    .auth-visual__message {
        bottom: 45px;
    }

    .auth-visual__message p {
        margin-bottom: 5px;
        font-size: 0.6rem;
    }

    .auth-visual__message h2 {
        font-size: 2.3rem;
    }

    .auth-content {
        padding: 68px 2rem 34px;
    }

    .auth-form-header {
        margin-bottom: 27px;
    }

    .auth-form-header h1 {
        font-size: 2.15rem;
    }

    .auth-form-row,
    .auth-social-grid {
        grid-template-columns: 1fr;
    }
}

/*
|--------------------------------------------------------------------------
| Compact desktop authentication layout
|--------------------------------------------------------------------------
|
| This reduces the actual element dimensions. It does not use zoom or
| transform: scale(). Mobile styling below 820px remains unchanged.
|
*/

@media (min-width: 821px) {
    .auth-shell {
        min-height: 100vh;
        padding: 24px;
    }

    .auth-card {
        width: min(1040px, calc(100vw - 48px));
        min-height: 650px;
        grid-template-columns:
            minmax(0, 1.02fr)
            minmax(400px, 0.98fr);
        border-radius: 20px;
    }

    .auth-visual {
        min-height: 650px;
    }

    .auth-visual__top {
        top: 18px;
        right: 18px;
        left: 18px;
        gap: 13px;
    }

    .auth-brand-badge {
        width: 80px;
        min-height: 56px;
        padding: 9px 12px;
        border-radius: 12px;
    }

    .auth-brand-badge img {
        max-width: 145px;
    }

    .auth-back-link {
        min-height: 36px;
        gap: 6px;
        padding: 3px 12px;
        font-size: 0.6rem;
    }

    .auth-visual__message {
        right: 34px;
        bottom: 64px;
        left: 34px;
    }

    .auth-visual__message p {
        margin-bottom: 6px;
        font-size: 0.68rem;
    }

    .auth-visual__message h2 {
        max-width: 420px;
        font-size: 2.7rem;
        line-height: 1.04;
    }

    .auth-visual__dots {
        bottom: 24px;
        left: 34px;
        gap: 7px;
    }

    .auth-visual__dots span {
        width: 25px;
        height: 3px;
    }

    .auth-visual__dots span.is-active {
        width: 39px;
    }

    .auth-content {
        padding: 52px 44px 32px;
    }

    .auth-content__inner {
        width: 100%;
        max-width: 430px;
    }

    .auth-theme-button {
        top: 17px;
        right: 19px;
        width: 38px;
        height: 38px;
    }

    .auth-form-header {
        margin-bottom: 22px;
    }

    .auth-form-header h1 {
        margin-bottom: 8px;
        font-size: 2.35rem;
        line-height: 1.05;
    }

    .auth-form-header p {
        font-size: 0.85rem;
    }

    .auth-form {
        gap: 12px;
    }

    .auth-form-row {
        gap: 10px;
    }

    .auth-label {
        margin-bottom: 5px;
        font-size: 0.72rem;
    }

    .auth-input {
        min-height: 46px;
        padding: 10px 13px;
        border-radius: 8px;
        font-size: 0.86rem;
    }

    .auth-password-input {
        padding-right: 45px;
    }

    .auth-password-toggle {
        right: 7px;
        width: 34px;
        height: 34px;
    }

    .auth-error {
        margin-top: 5px;
        font-size: 0.71rem;
    }

    .auth-terms {
        gap: 8px;
        font-size: 0.73rem;
    }

    .auth-terms input {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }

    .auth-submit-button {
        min-height: 46px;
        padding: 10px 16px;
        border-radius: 8px;
        font-size: 0.85rem;
    }

    .auth-divider {
        gap: 12px;
        margin: 17px 0 13px;
        font-size: 0.7rem;
    }

    .auth-social-grid {
        gap: 10px;
    }

    .auth-social-button {
        min-height: 44px;
        gap: 8px;
        padding: 9px 12px;
        border-radius: 8px;
        font-size: 0.82rem;
    }

    .auth-social-button i {
        font-size: 1rem;
        color: var(--auth-icon);
    }

    .auth-social-button svg {
    width: 13px;
}

    .auth-social-note {
        margin-top: 8px;
        font-size: 0.64rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/*
|--------------------------------------------------------------------------
| Authentication alerts
|--------------------------------------------------------------------------
*/

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-bottom: 18px;
    padding: 12px 14px;

    border: 1px solid transparent;
    border-radius: 9px;

    font-size: 0.82rem;
    line-height: 1.5;
}

.auth-alert i {
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: 1rem;
}

.auth-alert--error {
    border-color: color-mix(
        in srgb,
        var(--auth-danger) 45%,
        transparent
    );

    background: var(--auth-danger-bg);
    color: var(--auth-danger);
}

.auth-alert--success {
    border-color: color-mix(
        in srgb,
        var(--auth-green-strong) 45%,
        transparent
    );

    background: var(--auth-green);
    color: var(--auth-green-strong);
}

/*
|--------------------------------------------------------------------------
| Active social-authentication links
|--------------------------------------------------------------------------
*/

a.auth-social-button {
    cursor: pointer;
    text-decoration: none;
}

a.auth-social-button:visited {
    color: var(--auth-text);
}

a.auth-social-button:focus-visible {
    outline: 3px solid color-mix(
        in srgb,
        var(--auth-accent) 38%,
        transparent
    );

    outline-offset: 3px;
}

@media (max-width: 560px) {
    .auth-alert {
        padding: 11px 12px;
        font-size: 0.78rem;
    }
}

/*
|--------------------------------------------------------------------------
| Login page helpers
|--------------------------------------------------------------------------
*/

.auth-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 2px;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--auth-text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
    cursor: pointer;
}

.auth-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-accent);
    cursor: pointer;
}

.auth-inline-link {
    color: var(--auth-accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.auth-inline-link:hover {
    opacity: 0.86;
    text-decoration: underline;
}

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

@media (max-width: 560px) {
    .auth-login-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/*
|--------------------------------------------------------------------------
| Incorrect login credentials
|--------------------------------------------------------------------------
*/

.auth-credentials-alert {
    display: block;

    margin: -20px 0 20px;
    padding: 7px 10px;

    /* border: 1px solid #f3b8bd; */
    border-radius: 17px;

    background: #fde3e5;
    color: #c92f35;

    font-size: clamp(0.5rem, 0.7vw, 0.7rem);
    font-weight: 400;
    line-height: 1.4;
}

/* Dark authentication theme */
html.auth-dark .auth-credentials-alert {
    border-color: #7f3a41;
    background: #3b1c20;
    color: #ffc6ca;
}


/* Auth Verify */
.auth-credentials-verify {
    display: block;

    margin: -20px 0 20px;
    padding: 7px 10px;

    /* border: 1px solid #f3b8bd; */
    border-radius: 17px;

    background: #fdf1e3;
    color: #c6822a;

    font-size: clamp(0.5rem, 0.7vw, 0.7rem);
    font-weight: 400;
    line-height: 1.4;
}

/* Dark authentication theme */
.auth-credentials-verify {
    border-color: #b18f40;
    background: #332b17;
    color: #fdeab8;
}

@media (max-width: 560px) {
    .auth-credentials-alert {
        margin-bottom: 17px;
        padding: 12px 14px;
        border-radius: 13px;
        font-size: 0.6rem;
    }
}

/*
|--------------------------------------------------------------------------
| Password-recovery page
|--------------------------------------------------------------------------
*/

.auth-forgot-password {
    width: 100%;
}

.auth-secondary-actions {
    display: flex;
    justify-content: center;
    margin-top: 21px;
}

.auth-secondary-actions a {
    padding: 0 .75rem;

}

.auth-secondary-actions .auth-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
}

.auth-secondary-actions .auth-inline-link i {
    font-size: 0.88rem;
}

@media (min-width: 821px) {
    .auth-forgot-password {
        max-width: 430px;
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    .auth-secondary-actions {
        margin-top: 18px;
    }
}

/*
|--------------------------------------------------------------------------
| Reset Password page
|--------------------------------------------------------------------------
*/

.auth-reset-password {
    width: 100%;
}

.auth-input--readonly {
    cursor: not-allowed;
    opacity: 0.82;
    background:
        color-mix(
            in srgb,
            var(--auth-input-bg) 82%,
            var(--auth-text-muted) 18%
        );
}

.auth-field-note {
    margin: 6px 0 0;
    color: var(--auth-text-muted);
    font-size: 0.7rem;
    line-height: 1.45;
}

.auth-password-guidance {
    margin: -2px 0 2px;
    color: var(--auth-text-muted);
    font-size: 0.72rem;
    line-height: 1.5;
}

html.auth-dark .auth-input--readonly {
    background:
        color-mix(
            in srgb,
            var(--auth-input-bg) 87%,
            #ffffff 13%
        );
}

@media (min-width: 821px) {
    .auth-reset-password {
        max-width: 430px;
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    .auth-field-note,
    .auth-password-guidance {
        font-size: 0.68rem;
    }
}

/*
|--------------------------------------------------------------------------
| Email-verification page
|--------------------------------------------------------------------------
*/

.auth-verify-email {
    width: 100%;
}

.auth-verification-icon {
    display: inline-flex;
    width: 66px;
    height: 66px;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border: 1px solid
        color-mix(
            in srgb,
            var(--auth-green-strong) 30%,
            transparent
        );

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            color-mix(
                in srgb,
                var(--auth-green) 88%,
                #ffffff 12%
            ),
            color-mix(
                in srgb,
                var(--auth-accent) 15%,
                var(--auth-green) 85%
            )
        );

    color: var(--auth-green-strong);
    font-size: 1.8rem;

    box-shadow:
        0 13px 28px
        color-mix(
            in srgb,
            var(--auth-green-strong) 16%,
            transparent
        );
}

.auth-verification-address {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 11px;

    margin: 4px 0 17px;
    padding: 13px 15px;

    border: 1px solid var(--auth-border);
    border-radius: 10px;

    background: var(--auth-input-bg);
    color: var(--auth-text);

    overflow-wrap: anywhere;
}

.auth-verification-address i {
    flex: 0 0 auto;
    color: var(--auth-accent);
    font-size: 1rem;
}

.auth-verification-address strong {
    font-size: 0.84rem;
    font-weight: 650;
}

.auth-verification-copy {
    margin: 0 0 20px;

    color: var(--auth-text-muted);
    font-size: 0.8rem;
    line-height: 1.65;
}

.auth-verification-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-top: 19px;
}

.auth-verification-link,
.auth-verification-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border: 0;
    background: transparent;
    color: var(--auth-text-muted);

    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;

    cursor: pointer;
}

.auth-verification-link:hover,
.auth-verification-logout:hover {
    color: var(--auth-accent);
}

.auth-verification-logout:disabled {
    cursor: wait;
    opacity: 0.6;
}

.auth-verification-help {
    margin: 22px 0 0;
    padding-top: 16px;

    border-top: 1px solid var(--auth-border);

    color: var(--auth-text-muted);
    font-size: 0.69rem;
    line-height: 1.55;
    text-align: center;
}

html.auth-dark .auth-verification-icon {
    border-color:
        color-mix(
            in srgb,
            var(--auth-green-strong) 50%,
            transparent
        );

    background:
        linear-gradient(
            145deg,
            #193820,
            #2c3020
        );

    color: #ccefd2;
}

@media (min-width: 821px) {
    .auth-verify-email {
        max-width: 430px;
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    .auth-verification-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 17px;
        border-radius: 17px;
        font-size: 1.55rem;
    }

    .auth-verification-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-verification-link,
    .auth-verification-logout {
        width: 100%;
        min-height: 38px;
    }
}

/*
|--------------------------------------------------------------------------
| Microsoft authentication button
|--------------------------------------------------------------------------
*/

.auth-social-button--microsoft .bi-microsoft {
    color: #00a4ef;
}

a.auth-social-button--microsoft:hover {
    border-color: var(--auth-green-strong);

    background:
        color-mix(
            in srgb,
            var(--auth-green) 68%,
            transparent
        );

    color: var(--auth-text);
}

a.auth-social-button--microsoft:focus-visible {
    outline: 3px solid
        color-mix(
            in srgb,
            var(--auth-green-strong) 35%,
            transparent
        );

    outline-offset: 3px;
}

html.auth-dark
a.auth-social-button--microsoft:hover {
    background:
        color-mix(
            in srgb,
            var(--auth-green-strong) 18%,
            transparent
        );
}

/*
|--------------------------------------------------------------------------
| Confirm Password page
|--------------------------------------------------------------------------
*/

.auth-confirm-password {
    width: 100%;
}

@media (min-width: 821px) {
    .auth-confirm-password {
        max-width: 430px;
        margin: 0 auto;
    }
}

/*
|--------------------------------------------------------------------------
| Auth legal consent
|--------------------------------------------------------------------------
*/

.auth-legal-consent {
    margin: 18px 0 8px;

    color: var(--auth-muted, #777777);

    font-size: 0.72rem;
    line-height: 1.6;
    text-align: center;
}

.auth-legal-consent a,
.auth-terms__link {
    color: currentColor;

    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.auth-legal-consent a:hover,
.auth-terms__link:hover {
    color: #347444;
}

.auth-legal-consent a:focus-visible,
.auth-terms__link:focus-visible {
    border-radius: 3px;
    outline: 3px solid rgba(255, 181, 52, 0.38);
    outline-offset: 3px;
}
