/*
 * Shared focused header for authentication pages.
 *
 * Auth keeps a single route back home instead of the full public navigation,
 * while matching the public wordmark scale and alignment.
 */

.auth-page-header {
    position: absolute;
    top: 24px;
    left: 50%;
    z-index: 2;
    width: min(1240px, calc(100% - 56px));
    transform: translateX(-50%);
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #aeb3ac;
    text-decoration: none;
}

.auth-back-arrow {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(17, 20, 18, 0.82);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font: 600 14px/1 "Inter", system-ui, sans-serif;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.auth-back-link img {
    display: block;
    width: auto;
    height: 36px;
}

.auth-back-link:hover {
    color: #f8f6f0;
}

.auth-back-link:hover .auth-back-arrow {
    border-color: rgba(135, 185, 151, 0.5);
    background: rgba(21, 25, 21, 0.96);
    transform: translateX(-1px);
}

.auth-back-link:focus-visible {
    outline: 3px solid #87b997;
    outline-offset: 4px;
    border-radius: 999px;
}

@media (max-width: 960px) {
    .auth-page-header {
        top: 22px;
        width: min(720px, calc(100% - 40px));
    }
}

@media (max-width: 560px) {
    .auth-page-header {
        top: 14px;
        width: calc(100% - 28px);
    }

    .auth-back-link {
        gap: 10px;
    }

    .auth-back-arrow {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .auth-back-link img {
        height: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-back-arrow {
        transition: none;
    }
}
