.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.header-username {
    font-size: 14px;
    overflow-wrap: anywhere;
}

.header-actions .logout-form {
    display: inline-flex;
    margin: 0;
}

.logout-button {
    padding: 7px 14px;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.logout-button:hover {
    background: rgba(127, 127, 127, 0.15);
}

.auth-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 440px;
    margin: 48px auto;
    padding: 32px;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

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

.auth-description {
    margin: 0 0 24px;
    color: #4b5563;
    line-height: 1.5;
}

.auth-form {
    margin: 0;
}

.auth-field {
    margin-bottom: 20px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.auth-field input {
    box-sizing: border-box;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #9ca3af;
    border-radius: 6px;
    background: #ffffff;
    color: #111827;
    font: inherit;
}

.auth-submit {
    width: 100%;
    padding: 12px 16px;
    border: 0;
    border-radius: 6px;
    background: #2563eb;
    color: #ffffff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.auth-submit:hover {
    background: #1d4ed8;
}

.auth-error {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    background: #fef2f2;
    color: #991b1b;
    line-height: 1.5;
}

.auth-field input:focus-visible,
.auth-submit:focus-visible,
.logout-button:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .site-header .header-content {
        flex-wrap: wrap;
        gap: 16px;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .auth-card {
        margin: 24px auto;
        padding: 24px;
    }
}