.auth-page {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    overflow: hidden;
    background: var(--site-bg);
}

.auth-bg {
    position: absolute;
    inset: 0;
    background: url("/static/images/tabs-login-bg.jpg") center/cover no-repeat;
    filter: blur(3px);
    transform: scale(1.06);
    z-index: 0;
}

.auth-overlay {
    position: absolute;
    inset: 0;
    background: rgba(34, 34, 34, 0.58);
    z-index: 1;
}

.auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 430px;
    padding: 40px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    color: white;
}

.auth-brand {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 18px;
    text-align: center;
}

.auth-card h1 {
    color: white;
    margin: 0;
    font-size: 32px;
    text-align: center;
}

.auth-subtitle {
    margin: 10px 0 28px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    text-align: center;
}

.auth-form p {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    margin-bottom: 7px;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.auth-form input {
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(184, 117, 59, 0.25);
    background: rgba(184, 117, 59, 0.12);
    color: white;
    outline: none;
}

.auth-form input:focus {
    border-color: #b8753b;;
    box-shadow: 0 0 0 3px rgba(184, 117, 59, 0.18);
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus,
.auth-form input:-webkit-autofill:active {
    -webkit-text-fill-color: white;
    caret-color: white;

    box-shadow: 0 0 0 1000px rgba(184, 117, 59, 0.12) inset;
    -webkit-box-shadow: 0 0 0 1000px rgba(184, 117, 59, 0.12) inset;

    border: 1px solid rgba(184, 117, 59, 0.35);

    transition: background-color 9999s ease-in-out 0s;
}

.auth-button {
    width: 100%;
    height: 50px;
    margin-top: 8px;
    border: none;
    border-radius: 10px;
    background: #965d2e;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.auth-button:hover {
    background: #b8753b;
}

.auth-link,
.auth-switch a {
    color: #b8753b;
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover,
.auth-switch a:hover {
    text-decoration: underline;
}

.auth-link {
    display: inline-block;
    margin-top: 20px;
}

.auth-switch {
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.75);;
}

@media (max-width: 520px) {
    .auth-card {
        padding: 30px 22px;
        border-radius: 16px;
    }

    .auth-card h1 {
        font-size: 28px;
    }
}

.auth-form .errorlist {
    list-style: none;
    margin: -8px 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(220, 38, 38, 0.14);
    border: 1px solid rgba(220, 38, 38, 0.35);
    color: #ffd6d6;
    font-size: 14px;
    line-height: 1.5;
}

.auth-form .errorlist li {
    margin: 0;
}

.auth-form .helptext {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.6;
}

.auth-form ul.helptext {
    padding-left: 18px;
}

/* Password reset confirmation */

.auth-confirmation-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    margin: 0 auto 20px;

    border: 1px solid rgba(184, 117, 59, 0.35);
    border-radius: 50%;

    background: rgba(184, 117, 59, 0.08);
    color: #b8753b;

    font-size: 20px;
    font-weight: 600;
}

.auth-confirmation-note {
    margin: 18px 0 0;

    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
}


/* Activation email confirmation actions */

.auth-activation-actions {
    margin-top: 28px;
    text-align: center;
}

.auth-activation-actions .auth-switch {
    margin: 0;
    line-height: 1.6;
}

.auth-activation-back {
    display: inline-block;
    margin-top: 24px;
    padding-top: 16px;
    color: #b8753b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-activation-back:hover {
    color: #d99a63;
    text-decoration: underline;
}

.auth-activation-back:focus-visible {
    outline: 2px solid #d99a63;
    outline-offset: 4px;
    border-radius: 2px;
}


.auth-activation-divider {
    width: 100%;
    height: 1px;
    margin: 24px 0 0;
    border: none;
    background: rgba(255, 255, 255, 0.15);
}


/* Authentication feedback messages */

.auth-message {
    padding: 13px 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.auth-message--success {
    color: #c9f7dc;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.auth-message--error {
    color: #ffd6d6;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.35);
}

.auth-message--warning,
.auth-message--info {
    color: #f5d7b5;
    background: rgba(184, 117, 59, 0.12);
    border: 1px solid rgba(184, 117, 59, 0.35);
}

.auth-messages {
    display: grid;
    gap: 10px;
    margin: 0 0 20px;
}

.auth-messages .auth-message {
    margin: 0;
}
