.auth-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.auth-nav__link,
.auth-nav__button {
    appearance: none;
    border: 1px solid rgba(37, 99, 235, 0.16);
    background: rgba(255, 255, 255, 0.72);
    color: #1e3a8a;
    border-radius: 999px;
    padding: 10px 14px;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.auth-nav__link:hover,
.auth-nav__button:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.28);
    color: #2563eb;
    transform: translateY(-1px);
}

.auth-nav__link.is-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.auth-nav__link.is-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.auth-nav__form {
    margin: 0;
}

.auth-panel {
    max-width: 720px;
}

.auth-form {
    display: grid;
    gap: 18px;
    margin-top: 8px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-label {
    color: #172033;
    font-size: 15px;
    font-weight: 800;
}

.auth-input {
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
    border: 1px solid rgba(100, 116, 139, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    color: #111827;
    padding: 0 18px;
    font: inherit;
    font-size: 16px;
    outline: none;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}

.auth-input:focus {
    border-color: rgba(37, 99, 235, 0.65);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    background: #ffffff;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-size: 15px;
}

.auth-check input {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}

.auth-errors {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
    padding: 16px 18px;
    border: 1px solid rgba(225, 29, 72, 0.22);
    border-radius: 18px;
    background: rgba(255, 241, 242, 0.92);
    color: #9f1239;
    font-weight: 700;
}

.auth-errors p {
    margin: 0;
}

.auth-hint {
    color: #64748b;
    font-size: 15px;
    line-height: 1.65;
}

.auth-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.auth-submit {
    appearance: none;
    border: 0;
    cursor: pointer;
}

@media (max-width: 960px) {
    .auth-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
        margin-top: 16px;
    }
}

@media (max-width: 640px) {
    .auth-nav {
        gap: 8px;
    }

    .auth-nav__link,
    .auth-nav__button {
        padding: 9px 12px;
        font-size: 14px;
    }

    .auth-panel {
        max-width: none;
    }

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

    .auth-actions .btn,
    .auth-actions button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}